Guest User

Untitled

a guest
May 24th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. --controller--
  2.  
  3. def photo
  4. @photos = Photo.find(:all, :conditions => ["album_id = ?", 1])
  5. @photo = Photo.find(params[:id])
  6. render :partial => 'panic/photo'
  7. end
  8.  
  9. --link_to ---
  10.  
  11.  
  12. <li>
  13. <%= link_to_remote('photos',
  14. :update => "front",
  15. :url =>{ :controller => :panic, :action => :photo, :id => 1 },
  16. :postion => 'after') %>
  17. </li>
Add Comment
Please, Sign In to add comment