Hi all,
==in my countroller i want to do something like this:==
photo_controller
def show @photo = Photo.find(params[:photo_id]) @place = Place.find(params[:place_id)) end
==so that in a view i can do something like this:==
place->show.rhtml
<h2> <%= @place.name %> </h2> <%= image_tag @photo.file.url %>
how do i write the link_to statement so that i can do that? something like: link_to "Show the picture of the place", { :controller => "photo", :action => "show", :photo_id => @photo, :place_id => @place} %>
Thank you very much.