Greg Donald wrote: > On Mon, Sep 20, 2010 at 2:48 PM, Abder-Rahman Ali <[email protected]> > wrote: >> Regarding this part: params[:photo]['photo'] >> >> What is ['photo']? > > It's probably from a file field: > > <input type="file" name="photo[photo]" /> > > > > -- > Greg Donald > destiney.com | gregdonald.com
"photo" is originally a column field, but what does it mean when inserting it in this shape? params[:photo]['photo'] If params[:photo] is telling us that we have a key :photo, what is the use of ['photo'], this is what I'm not getting. Thanks. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

