Class: MoviesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/movies_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



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_listObject



16
17
18
19
# File 'app/controllers/movies_controller.rb', line 16

def render_list
  @movies = get_video_list
  respond_with @movies
end