Module: AccountHelper

Includes:
KitHelper
Defined in:
app/helpers/account_helper.rb

Instance Method Summary collapse

Methods included from KitHelper

#_sid, #app_name, #bold_if, #button_to_with_params, #cm_editor, #current_path_with_new_params, #current_url, #current_without_params, #date_picker, #debug?, #doc_ready, #edit_link, #entity_encode, #feature?, #field, #field_reveal, #field_values, #form_check_code, #format_date, #friendly_page_path, #hide_if, #hide_unless, #host_name, #icon_link, #icon_to, #icon_to_function, #icon_to_show, #ip_info_link, #is_admin?, #is_debug?, #is_mobile?, #javascripts, #js_form_validation, #kit_default_header, #kit_javascripts, #kit_pagination, #kit_render, #kit_stylesheets, #kit_submit, #logo, #obscure_email, #optional_field, #page_draft, #page_edit_draft_path, #page_edit_path, #page_meta, #page_title, #pages_field_matches, #pounds, #pref, #render_snippet, #selected_class, #selected_item, #snippet, #strike_if, #style_word, #sys_pref, #version_page_path, #wrapper_class

Instance Method Details

#account_edit_form(options = {}) ⇒ Object



20
21
22
# File 'app/helpers/account_helper.rb', line 20

def (options = {})
  render :partial=>"account/edit", :locals=>{:options=>options}
end

#account_forgotten(options = {}) ⇒ Object



8
9
10
# File 'app/helpers/account_helper.rb', line 8

def (options = {})
  render :partial=>"account/forgotten", :locals=>{:options=>options}
end

#account_reset_failed(options = {}) ⇒ Object



44
45
46
# File 'app/helpers/account_helper.rb', line 44

def (options = {})
  render :partial=>"account/account_reset_failed", :locals=>{:options=>options}
end

#account_sign_in_form(options = {}) ⇒ Object



12
13
14
# File 'app/helpers/account_helper.rb', line 12

def (options = {})
  render :partial=>"account/sign_in", :locals=>{:options=>options}
end

#account_sign_up_form(options = {}) ⇒ Object



16
17
18
# File 'app/helpers/account_helper.rb', line 16

def (options = {})
  render :partial=>"account/sign_up", :locals=>{:options=>options}
end

#forgotten_urlObject



36
37
38
# File 'app/helpers/account_helper.rb', line 36

def forgotten_url
  sys_pref("account_forgotten_url") || "/users/forgotten"
end

#reset_urlObject



40
41
42
# File 'app/helpers/account_helper.rb', line 40

def reset_url
  sys_pref("account_reset_url") || "/users/reset"
end

#sign_in_urlObject



28
29
30
# File 'app/helpers/account_helper.rb', line 28

def 
  sys_pref("account_sign_in_url") || "/users/sign_in"
end

#sign_out_urlObject



32
33
34
# File 'app/helpers/account_helper.rb', line 32

def sign_out_url
  sys_pref("account_sign_out_url") || "/users/sign_out"
end

#sign_up_urlObject



24
25
26
# File 'app/helpers/account_helper.rb', line 24

def 
  sys_pref("account_sign_up_url") || "/users/sign_up"
end

#users_have_profiles?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'app/helpers/account_helper.rb', line 4

def users_have_profiles?
  UserAttribute.sys(_sid).where(:owner_editable=>1).count>0
end