Module: AuthAssistant::ViewHelpers::RegistrationLink

Included in:
AuthAssistant::ViewHelpers
Defined in:
lib/auth_assistant/view/registration_link.rb

Instance Method Summary collapse

Instance Method Details



11
12
13
14
15
# File 'lib/auth_assistant/view/registration_link.rb', line 11

def edit_registration_link(options = {})
  label = options[:label] || auth_labels[:edit_registration]
  path = edit_registration_path options[:role]
  link_to(label, path)
end


5
6
7
8
9
# File 'lib/auth_assistant/view/registration_link.rb', line 5

def (options = {})
  label = options[:label] || auth_labels[:sign_up]
  path = registration_path options[:role]
  link_to(label, path)
end