I am trying to remove / disable the path "user / sign_up" from Devise. I do this because I do not want random people to access the application. I have partially working by adding the following to routes.rb
Rails.application.routes.draw do devise_scope :user do get "/sign_in" => "devise/sessions#new" # custom path to login/sign_in get "/sign_up" => "devise/registrations#new", as: "new_user_registration" # custom path to sign_up/registration end ... devise_for :users, :skip => :registration end
However, this violates <%= link_to "Profile", edit_user_registration_path, class: "btn btn-info btn-flat" %>
which I want to save so that users can update their profile. I know this because of devise_for :users, :skip => :registration
Is there a solution for this problem?
Launch
Develop (4.2.0, 4.1.1, 4.1.0)
Rails 4.2.5
ruby 2.3.0p0 (version 2015-12-25 version 53290) [x86_64-linux]
ruby-on-rails devise
MT Davis
source share