Jump to content

The ultimate community for Ruby on Rails developers.


Paperclip 2.3.0

rails paperclip image_url

  • Please log in to reply
1 reply to this topic

#1 conal4284



  • Members
  • 8 posts

Posted 10 September 2013 - 06:06 AM

I am using Paperclip 2.3.0 and Rails 2.3.15


I want to read image url and display it using MySQL query. Using @model.img_url.url works fine.


My problem is I have an SQL join and I want to read the image url using the query.



Any suggestions would help me lot.


Thanks in advance.

#2 hellomello



  • Members
  • 18 posts

Posted 17 October 2013 - 06:39 PM

You can try using


in your controller or where ever you're SQL search for example:

@user = User.where( some params ).join( model name)..

Also tagged with one or more of these keywords: rails, paperclip, image_url

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users