At: http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm

You can find:

<%= file_field 'upload', 'datafile' %>

I saw the file_field documentation from here:

http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-file_field

But, still cannot get how the parameters 'upload' and 'datafile' work.

Based on the documentation:

upload ---> object_name
datafile ---> method

How is that?

Can you clarify on this?

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.

Reply via email to