I have been using paperclip to upload and fetch image(s) url. My question is how do I select the image column when doing something like this for eg: User table structure id
,name
, logo_file_name
, logo_content_type
+ more columns When i do u = User.find(1).logo
I get the result which is great. Now when I'm using u = User.select('name', 'logo').where('something')
receiving error saying there is no such column as u.logo which is clear to me, since there is no column that's why it's giving me error, but how do fetch image url later condition.
samedi 13 août 2016
How do I select the image column in rails when using where & select clause
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire