On 27 November 2015 at 06:04, fugee ohu <fugee...@gmail.com> wrote:
> isn't params[:category] a reference to a single field and not all the params
> from the form

params[:category] is identical to category_params.  As an old hand I
don't necessarily make use of later useful syntactical goodies in
rails.  Look at the params structure in the controller and you will
see how the hash is organised.  In fact I am not sure whether I like
using category_params as it is not obvious exactly what is being
referred to, whereas params[:category] can only refer to the category
hash within the params hash.

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%3D0gLv2WStvNuGrJP%3DxcTo9F-XwWy9czF9z_5v%3DCdJbe2UU9g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to