Upload Files to a particular Folder in Ruby On Rails 4 -


i using working on particular module in ruby on rails, want upload files particular folder. if it's possible, please share examples may me achieve functionality?

as @dharam mentioned. can use paperclip. working example can find here

demo

if want specify folder path attachments should move. need write in model

has_attached_file :attachment, :path => ":rails_root/attachments/:id/:style/:basename.:extension" 

after attachments seen in attachments folder in application root


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -