How would you move Bank Account info to a separate page.

I created a route - get 'users/bank' => 'application#bank'. I created the form with the first line being '<%= form_for @user, url: users_bank_path(current_user), html: { method: :put }) do |f| %>'. Since we use Devise, does this have anything to do with devise controllers or can I create a user_controller and write an update method in there? Or if I use the application controller, how do I include bank info as a permitted parameter? Once i understand this, I can try to figure out how to update the coffeescript.

Posted almost 6 years ago by Ashfaaq Moosa
Posted almost 6 years ago by Alex Yang

The Devise documentation ( contains a lot of information on customizations. For example, here's how to customize a Devise controller: And here's how to add a custom route:

In your case, you'll need to do both. To include another permitted parameter, you can do this from your Devise controller. Here's how:

1) Place a 'before_action :configure_permitted_parameters' in your custom Devise registrations_controller.rb

2) Place the following at the bottom of your controller file:
def configure_permitted_parameters
# Each of your permitted parameters, e.g.
devise_parameter_sanitizer.for(:sign_up) << :bank_account
devise_parameter_sanitizer.for(:account_update) << :bank_account