Rails 4 Devise - Adding a new route and action -


i use devise authentication , have below in routes.rb

devise_for :users 

i want add new page under users , have form in there collect additional user input. there lot of info on over of seems complicated. i'm guessing should 1 or 2 lines of code? want add url users/additionalinfo , related method controller (devise methods in application_controller.rb). how that?

did mean this:

 devise_scope :users    '/my_controller/additionalinfo', :to => 'my_controller#additionalinfo'  end 

i don't think it's complicated. please check devise doc more info: https://github.com/plataformatec/devise/wiki/how-to:-change-the-default-sign_in-and-sign_out-routes


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -