Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --controller--
- def photo
- @photos = Photo.find(:all, :conditions => ["album_id = ?", 1])
- @photo = Photo.find(params[:id])
- render :partial => 'panic/photo'
- end
- --link_to ---
- <li>
- <%= link_to_remote('photos',
- :update => "front",
- :url =>{ :controller => :panic, :action => :photo, :id => 1 },
- :postion => 'after') %>
- </li>
Add Comment
Please, Sign In to add comment