Hi folks, any ideas on this one? Regards, Rajesh
On Mar 13, 10:31 pm, "K. Rajesh"
<kaviraj...-uAjRD0nVeow@public.gmane.org> wrote:> My rhtml looks like this (extract)
>
> <tr><td>File</td>
> <td><%= file_field(:document,
''file'') %></td>
> </tr>
> <tr><td>Description:</td>
> <td><%= text_area(:document,
''description'',
> {:rows=>8, :cols=>40}) %></td>
> </tr>
> <tr><td>Category:</td>
> <td><%= select(:document,
''folder_id'', @folders) %></td>
> </tr>
>
> Params shows up in log as follows:
>
> Parameters: {"commit"=>"Upload",
"action"=>"create",
> "document"=>{"folder_id"=>"1",
"description"=>"some doc"},
> "controller"=>"documents"}
>
> Where did the ''file'' params vanish? How come
document[description] and
> document[folder_id] are picked up but not document[file]?
>
> Rajesh
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---