Class: BoardController

Inherits:
ApplicationController show all
Includes:
TransitionManager
Defined in:
app/controllers/board_controller.rb

Instance Method Summary collapse

Methods included from TransitionManager

#apply_transition, #successor_statuses, #transition_allowed?

Methods included from ApplicationHelper

#footer_menu, #home_page

Instance Method Details

#indexObject



4
5
6
7
8
# File 'app/controllers/board_controller.rb', line 4

def index
  if (! ProjectInfo.exists?(1))
    redirect_to :controller => 'project_infos', :action => 'new'
  end
end

#page_titleObject



10
11
12
13
14
# File 'app/controllers/board_controller.rb', line 10

def page_title
  if ('index' == action_name())
  "In Play, iteration #{ProjectInfo.find(1).current_iteration.to_s}"
  end
end