I have in a users_controller:
@user = User.new(params[:user])
Passing parameters to a User model which works fine.
I need to pass some additional parameters labeled "profile" to the user model through the users controller.
This didn't work:
@user = User.new(params[:user, :profile])
Neither did this:
@user = User.new(params[:user], params[:profile])
I tried a variety of other similar things to get the profile parameters from the view into this model.
I'm using fields_for which works fine to get these fields into the users controller:
<% fields_for "profile" do |fa| %>
I don't need/want a nested relationship. I just need to simply pass some additional parameters specified in the view to the model.
Thanks!