On 27 November 2015 at 05:53, fugee ohu <fugee...@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

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLssUWnLKogU8_Ho-PJu9-Kvg4toOvvhpDDVSQLE9A6D6Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to