0

I want to skip new_registrations_path because I do not want that user signup itself. Admin can add it.

To skip this I do that

devise_for :advertisers, :skip => :registrations

But issue is that edit_registration_path also skip with it. How I fix it?

  • 2
    Possible duplicate of [Devise routing: is there a way to remove a route from Rails.application.routes?](http://stackoverflow.com/questions/6986861/devise-routing-is-there-a-way-to-remove-a-route-from-rails-application-routes) – Pavan Nov 03 '15 at 12:51

1 Answers1

0

You can do like this:

devise_for :advertisers, :skip => [:registrations]

 as :advertiser do
   get "/advertisers/edit" => "devise/registrations#edit", :as => :edit_advertisers_registration 
   put "/advertisers" => "devise/registrations#update", :as => :advertisers_registration
 end

Hope this will help you .

Gaurav Gupta
  • 1,181
  • 10
  • 15