Hi, I have a collection of photo objects that I want to render.
My view looks something like this:
<%= link_to(image_tag(photo.thumb_path), :action => ‘show’, :id =>
photo.id) %>
Where:
photo.thumb_path() returns the full path of the thumbnail, say:
/path_to_rails_app/public/assets/1/album/5/1156550545_thmb.jpg
Unfortunately, the photo path is resolving to this in the browser:
http://dev.mysite.com/opt/myapp/public/assets/1/album/5/1156550545_thmb.jpg?
I don’t know where the hanging “?” is coming from. When I just call
photo.thumb_path() there isn’t a “?”.
Also, is there a method to hide the path to the rails app?
Hopefully someone can show me the painfully obvious thing(s) I’m doing
wrong!
Thanks!
Joe