James Byrne wrote:
>...
> And this is what params looks like after the submit button is
> selected:
>
> {"user"=> {"id"=>"146"}, "commit"=>"Commit Changes", "_method"=>"put",
> "action"=>"update", "clearance"=>[{"id"=>"122", "description"=>"Just a
> test", "effective_from"=>"2009-01-01"}, {"role_id"=>"178",
> "effective_from"=>"2010-01-21 00:00:00 -0500", "user_id"=>"146"}],
> "controller"=>"user_roles"}
The problem seems to be your form. The params should look like something
like this:
{"user"=> {"id"=>"146", "clearances_attributes"=>[
{"id"=>"122", "description"=>"Just a test",
"effective_from"=>"2009-01-01"},
{"role_id"=>"178", "effective_from"=>
"2010-01-21 00:00:00 -0500", "user_id"=>"146"}]},
... }
Regards, T.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.