Re: [Rails] What may cause request parameters to appear as nested parameters

2017-04-20 Thread fugee ohu
On Thursday, April 20, 2017 at 8:05:00 AM UTC-4, Walter Lee Davis wrote: > > utf8 and authenticity_token are at the "root" level of the params hash, at > the same level as press_release. They are peers. Press release contains two > child attributes and their values, because that's the way your

Re: [Rails] What may cause request parameters to appear as nested parameters

2017-04-20 Thread Walter Lee Davis
utf8 and authenticity_token are at the "root" level of the params hash, at the same level as press_release. They are peers. Press release contains two child attributes and their values, because that's the way your form was set up. By default, when you use <%= form_for @foo do | f | %>