Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # in app/controllers/movies_controller.rb
- def show
- id = params[:id] # retrieve movie ID from URI route
- @movie = Movie.find(id) # look up movie by unique ID
- # will render app/views/movies/show.html.haml by default
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement