Module: MuckUsersHelper

Defined in:
app/helpers/muck_users_helper.rb

Instance Method Summary collapse

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 (options = {}, &block)
  options[:html] = {} if options[:html].nil?
  options[:title] = nil if options[:title].blank?
  options[:exclude_register_link] = false if options[:exclude_register_link].blank?    
  options[:exclude_forgot_password_link] = false if options[:exclude_forgot_password_link].blank?
  options[:exclude_forgot_username_link] = false if options[:exclude_forgot_username_link].blank?
  raw_block_to_partial('user_sessions/form', options, &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 (user, redirect_to = nil, options = {}, &block)
  options[:html] = {} if options[:html].nil?
  options[:title] = nil if options[:title].blank?
  options[:subtitle] = nil if options[:subtitle].blank?
  raw_block_to_partial('users/signup_form', options.merge(:user => user, :redirect_to => redirect_to), &block)
end

#signup_form_javascriptObject

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 
  render :partial => 'users/signup_form_javascript'
end