Class: ActsController

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

Instance Method Summary collapse

Methods inherited from ApplicationController

#act, #convert, #render_not_found

Instance Method Details

#indexObject


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

def index
  @acts = Act.all(:order => 'name')
  render :index, :layout => false
end

#showObject


8
9
10
11
12
# File 'app/controllers/acts_controller.rb', line 8

def show
  @act = Act.find(params[:id], :include => 'act_sections')
  @sections = @act.act_sections
  render :show, :layout => false
end