Class: ViewsController

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

Instance Method Summary collapse

Methods inherited from ApplicationController

#not_found

Instance Method Details

#indexObject



4
5
6
# File 'app/controllers/views_controller.rb', line 4

def index
  @views = View.all
end

#showObject



8
9
10
# File 'app/controllers/views_controller.rb', line 8

def show
  @view = View.find(params[:id])
end