Module: MuckUsersHelper
- Defined in:
- app/helpers/muck_users_helper.rb
Instance Method Summary collapse
-
#signup_form(user, redirect_to = nil) ⇒ Object
Render a basic user registration form.
-
#signup_form_javascript ⇒ Object
Sign up javascript is not required but will add script to the sign up form which will make ajax calls that indicate to the user whether or not the login and email they choose have already been taken.
Instance Method Details
#signup_form(user, redirect_to = nil) ⇒ Object
Render a basic user registration form
4 5 6 |
# File 'app/helpers/muck_users_helper.rb', line 4 def signup_form(user, redirect_to = nil) render :partial => 'users/signup_form', :locals => { :user => user, :redirect_to => redirect_to} end |
#signup_form_javascript ⇒ Object
Sign up javascript is not required but will add script to the sign up form which will make ajax calls that indicate to the user whether or not the login and email they choose have already been taken.
10 11 12 |
# File 'app/helpers/muck_users_helper.rb', line 10 def signup_form_javascript render :partial => 'users/signup_form_javascript' end |