You can find:

<%= file_field ‘upload’, ‘datafile’ %>

I saw the file_field documentation from here:

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?


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