My rhtml looks like this (extract)

File <%= file_field(:document, 'file') %> Description: <%= text_area(:document, 'description', {:rows=>8, :cols=>40}) %> Category: <%= select(:document, 'folder_id', @folders) %>

Params shows up in log as follows:

Parameters: {“commit”=>“Upload”, “action”=>“create”,
“document”=>{“folder_id”=>“1”, “description”=>“some doc”},

Where did the ‘file’ params vanish? How come document[description] and
document[folder_id] are picked up but not document[file]?


Hi folks, any ideas on this one? Regards, Rajesh

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs