I have a remote: true
form in my Rails 5 app and I'd like to redirect to different pages depending on when it's used.
I've tried adding a :redirect_to
virtual attribute:
<%= a.input :redirect_to, as: :hidden, input_html: {
value: confirmation_orders_path
} %>
And modified my model to accept this virtual attribute:
attribute :redirect_to, :string
attr_accessor :redirect_to
But I still see Unpermitted parameter: :redirect_to
. What can I do to allow this param to pass?