saasbook

restful_controller_example.rb

May 1st, 2012
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.14 KB | None | 0 0
  1. def show
  2.   @movie = Movie.find(params[:id])
  3.   respond_to do |format|
  4.     format.html
  5.     format.xml { render :xml => @movie.to_xml }
  6.   end
  7. end
Advertisement
Add Comment
Please, Sign In to add comment