Class: MoviesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- MoviesController
- Defined in:
- app/controllers/movies_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'app/controllers/movies_controller.rb', line 6 def index if request.xhr? @movies = get_video_list respond_with @movies do |format| format.html { render :layout => false } end end end |
#render_list ⇒ Object
16 17 18 19 |
# File 'app/controllers/movies_controller.rb', line 16 def render_list @movies = get_video_list respond_with @movies end |