Displaying 1 result from an estimated 1 matches for "goal_pages".
2006 Jan 21
0
Select box problems
...log = Logger.new(STDERR)
log.level = Logger::DEBUG
#log.debug(params[:goal][:scope])
@goal = params[:goal]
if @goal != nil
#@goals = Goal.find(1)
@goals = Goal.find(:all, :conditions => ["scope = :scope",
@goal])
#log.debug(@goal.scope)
else
@goal_pages, @goals = paginate :goals, :per_page => 10
end
end
The goal.rb is:
class Goal < ActiveRecord::Base
validates_presence_of :goal
validates_uniqueness_of :goal
acts_as_tree :order => "goal"
GOAL_SCOPES = [["Lifetime", "Lifetime"], ["This Yea...