[Rails] Re: Opening a folder for file selection
One way:
1) Get the filenames: Dir.foreach or Dir.glob.
2) Create a view that provides a list of links, one for each file.
3) The links connect to another action, which sends the file.
Why is your action named 'upload'? How about 'download'?
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home