On 27 November 2015 at 05:53, fugee ohu <
fuge...@gmail.com> 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 covered by
https://www.railstutorial.org/book/rails_flavored_ruby#sec-a_user_class
in the rails tutorial.
You really would save yourself a lot of time if you took two days out
and worked right through it, doing all the exercises and so on.
Colin