Module: AuthAssistant::ViewHelpers::RegistrationLink
- Included in:
- AuthAssistant::ViewHelpers
- Defined in:
- lib/auth_assistant/view/registration_link.rb
Instance Method Summary collapse
- #edit_registration_link(options = {}) ⇒ Object (also: #edit_profile_link)
- #sign_up_link(options = {}) ⇒ Object (also: #register_link)
Instance Method Details
#edit_registration_link(options = {}) ⇒ Object Also known as: edit_profile_link
11 12 13 14 15 |
# File 'lib/auth_assistant/view/registration_link.rb', line 11 def edit_registration_link( = {}) label = [:label] || auth_labels[:edit_registration] path = edit_registration_path [:role] link_to(label, path) end |
#sign_up_link(options = {}) ⇒ Object Also known as: register_link
5 6 7 8 9 |
# File 'lib/auth_assistant/view/registration_link.rb', line 5 def sign_up_link( = {}) label = [:label] || auth_labels[:sign_up] path = registration_path [:role] link_to(label, path) end |