>
> params[:photo]
>
> This looks like follows in the "params" table:
>
> ------------------
> Key | Value
> ------------------
> :photo | "xyz"
> ------------------
>
>
not in the table in the params hash , when your app recives info back from
the user rails arranges it in a hash called parasm
look at you console log when ever you create a resource or dear an specific
one you will see
parameter => { :id=>1, :name=>"blah" .... }
to read from those nested values you call them params[:id]
but that is how rails arrenges the request that has nothing to do with the
table.
--
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.