Re: [Rails] objects in the create method

2015-11-27 Thread Colin Law
On 27 November 2015 at 05:53, fugee ohu wrote: > I'm trying to follow this example in my controller: science = > Category.create!(:name => 'Science') > but most create actions look like @science=Category.new(science_params) > do I need the object to be an array beginning with @ I think this is co

[Rails] objects in the create method

2015-11-26 Thread fugee ohu
I'm trying to follow this example in my controller: science = Category.create!(:name => 'Science') but most create actions look like @science=Category.new(science_params) do I need the object to be an array beginning with @ -- You received this message because you are subscribed to the Goog