fix error with user sign up
This commit is contained in:
parent
5a4d9f9369
commit
477a0761d7
|
@ -2,7 +2,7 @@
|
||||||
= link_to t("layout.devise.shared_links.sign_in"), new_session_path(resource_name), class: "text_button_padding link_button"
|
= link_to t("layout.devise.shared_links.sign_in"), new_session_path(resource_name), class: "text_button_padding link_button"
|
||||||
- if devise_mapping.registerable? && controller_name != 'registrations'
|
- if devise_mapping.registerable? && controller_name != 'registrations'
|
||||||
=# link_to t("layout.devise.shared_links.sign_up"), new_registration_path(resource_name), class: "text_button_padding link_button"
|
=# link_to t("layout.devise.shared_links.sign_up"), new_registration_path(resource_name), class: "text_button_padding link_button"
|
||||||
= link_to t("layout.devise.shared_links.sign_up"), new_register_request_path, class: "text_button_padding link_button" # to prereg form
|
= link_to t("layout.devise.shared_links.sign_up"), new_user_registration_path, class: "text_button_padding link_button" # to prereg form
|
||||||
- if devise_mapping.recoverable? && controller_name != 'passwords'
|
- if devise_mapping.recoverable? && controller_name != 'passwords'
|
||||||
= link_to t("layout.devise.shared_links.forgot_password"), new_password_path(resource_name), class: "text_button_padding link_button"
|
= link_to t("layout.devise.shared_links.forgot_password"), new_password_path(resource_name), class: "text_button_padding link_button"
|
||||||
- if devise_mapping.confirmable? && controller_name != 'confirmations'
|
- if devise_mapping.confirmable? && controller_name != 'confirmations'
|
||||||
|
|
|
@ -50,7 +50,7 @@ nav.navbar.navbar-inverse.top_menu role = "navigation"
|
||||||
li= link_to t('layout.logout'), destroy_user_session_path, method: :delete
|
li= link_to t('layout.logout'), destroy_user_session_path, method: :delete
|
||||||
- else
|
- else
|
||||||
ul.nav.navbar-nav
|
ul.nav.navbar-nav
|
||||||
li= link_to t('layout.devise.shared_links.sign_up'), new_register_request_path
|
li= link_to t('layout.devise.shared_links.sign_up'), new_user_registration_path
|
||||||
li= link_to t('layout.devise.shared_links.sign_in'), new_user_session_path
|
li= link_to t('layout.devise.shared_links.sign_in'), new_user_session_path
|
||||||
/ /.navbar-collapse
|
/ /.navbar-collapse
|
||||||
/ /.container-fluid
|
/ /.container-fluid
|
||||||
|
|
|
@ -253,7 +253,7 @@ Rosa::Application.routes.draw do
|
||||||
put :reset_auth_token
|
put :reset_auth_token
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
resources :register_requests, only: [:new, :create], format: /ru|en/ #view support only two languages
|
#resources :register_requests, only: [:new, :create], format: /ru|en/ #view support only two languages
|
||||||
|
|
||||||
get '/allowed' => 'users#allowed'
|
get '/allowed' => 'users#allowed'
|
||||||
get '/check' => 'users#check'
|
get '/check' => 'users#check'
|
||||||
|
|
Loading…
Reference in New Issue