Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MoviesController < ApplicationController
- def show
- id = params[:id] # retrieve movie ID from URI route
- @movie = Movie.find(id) # look up movie by unique ID
- render(:partial => 'movie', :object => @movie) if request.xhr?
- # will render app/views/movies/show.<extension> by default
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement