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. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---