Wednesday, April 27, 2011

[Rails] paperclip plugin

Hi,

Is it possible to have a file uploader in my form using the paperclip
plugin that doesn't correspond to a model attribute? For example, I
want to be able to upload a file for a model but name it using the
model's id - then when I retrieve the file, I'll just use the id to
get the file's path. This way, I avoid having to save that name in
the database table.

Thanks

--
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


Real Estate