Module: MuckUsersHelper
- Defined in:
- app/helpers/muck_users_helper.rb
Instance Method Summary collapse
- #signin_form(options = {}, &block) ⇒ Object
-
#signup_form(user, redirect_to = nil, options = {}, &block) ⇒ 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
#signin_form(options = {}, &block) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'app/helpers/muck_users_helper.rb', line 11 def signin_form( = {}, &block) [:html] = {} if [:html].nil? [:title] = nil if [:title].blank? [:exclude_register_link] = false if [:exclude_register_link].blank? [:exclude_forgot_password_link] = false if [:exclude_forgot_password_link].blank? [:exclude_forgot_username_link] = false if [:exclude_forgot_username_link].blank? raw_block_to_partial('user_sessions/form', , &block) end |
#signup_form(user, redirect_to = nil, options = {}, &block) ⇒ Object
Render a basic user registration form
4 5 6 7 8 9 |
# File 'app/helpers/muck_users_helper.rb', line 4 def signup_form(user, redirect_to = nil, = {}, &block) [:html] = {} if [:html].nil? [:title] = nil if [:title].blank? [:subtitle] = nil if [:subtitle].blank? raw_block_to_partial('users/signup_form', .merge(:user => user, :redirect_to => redirect_to), &block) 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.
22 23 24 |
# File 'app/helpers/muck_users_helper.rb', line 22 def signup_form_javascript render :partial => 'users/signup_form_javascript' end |