Sha256: c7c7ad3b4bf00a4fdab7dcc299a0d2cf59eeaa90301692cd84c1bfc313b9c6eb

Contents?: true

Size: 1.19 KB

Versions: 11

Compression:

Stored size: 1.19 KB

Contents

module MuckUsersHelper
  
  # Render a basic user registration form
  def signup_form(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
  
  def signin_form(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
  
  # 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.
  def signup_form_javascript
    render :partial => 'users/signup_form_javascript'
  end
  
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
muck-users-3.1.23 app/helpers/muck_users_helper.rb
muck-users-3.1.22 app/helpers/muck_users_helper.rb
muck-users-3.1.21 app/helpers/muck_users_helper.rb
muck-users-3.1.19 app/helpers/muck_users_helper.rb
muck-users-3.1.18 app/helpers/muck_users_helper.rb
muck-users-3.1.17 app/helpers/muck_users_helper.rb
muck-users-3.1.16 app/helpers/muck_users_helper.rb
muck-users-3.1.15 app/helpers/muck_users_helper.rb
muck-users-3.1.14 app/helpers/muck_users_helper.rb
muck-users-3.1.13 app/helpers/muck_users_helper.rb
muck-users-3.1.12 app/helpers/muck_users_helper.rb