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
20
21
22
|
# File 'app/helpers/account_helper.rb', line 20
def account_edit_form(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 account_forgotten(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 account_reset_failed(options = {})
render :partial=>"account/account_reset_failed", :locals=>{:options=>options}
end
|
12
13
14
|
# File 'app/helpers/account_helper.rb', line 12
def account_sign_in_form(options = {})
render :partial=>"account/sign_in", :locals=>{:options=>options}
end
|
16
17
18
|
# File 'app/helpers/account_helper.rb', line 16
def account_sign_up_form(options = {})
render :partial=>"account/sign_up", :locals=>{:options=>options}
end
|
#forgotten_url ⇒ Object
36
37
38
|
# File 'app/helpers/account_helper.rb', line 36
def forgotten_url
sys_pref("account_forgotten_url") || "/users/forgotten"
end
|
#reset_url ⇒ Object
40
41
42
|
# File 'app/helpers/account_helper.rb', line 40
def reset_url
sys_pref("account_reset_url") || "/users/reset"
end
|
#sign_in_url ⇒ Object
28
29
30
|
# File 'app/helpers/account_helper.rb', line 28
def sign_in_url
sys_pref("account_sign_in_url") || "/users/sign_in"
end
|
#sign_out_url ⇒ Object
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_url ⇒ Object
24
25
26
|
# File 'app/helpers/account_helper.rb', line 24
def sign_up_url
sys_pref("account_sign_up_url") || "/users/sign_up"
end
|
#users_have_profiles? ⇒ 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
|