Friday, October 14, 2011

[Rails] Re: Paperclip saving/retrieving files above public/

Try adding "public" to your path:
:path => ":rails_root/public/
uploaded/:attachable_type/:attachable_id/:id_:style.:extension "

Then you can just link directly to it:
<img src="/uploaded/:attachable_type/:id/:id_:style.:extension" />

On Oct 13, 6:36 pm, Keith Raymond <li...@ruby-forum.com> wrote:
> Does anyone have any ideas on this?
>
> Please I'm still desperate for an answer
>
> --
> Posted viahttp://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


Real Estate