This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TypeError: can't convert Symbol into Integer | |
| from /Users/gakins/.rvm/gems/ruby-1.9.2-p320@landmark/gems/activerecord-3.0.20/lib/active_record/nested_attributes.rb:363:in `[]' | |
| from /Users/gakins/.rvm/gems/ruby-1.9.2-p320@landmark/gems/activerecord-3.0.20/lib/active_record/nested_attributes.rb:363:in `block in assign_nested_attributes_for_collection_association' | |
| from /Users/gakins/.rvm/gems/ruby-1.9.2-p320@landmark/gems/activerecord-3.0.20/lib/active_record/nested_attributes.rb:363:in `map' | |
| from /Users/gakins/.rvm/gems/ruby-1.9.2-p320@landmark/gems/activerecord-3.0.20/lib/active_record/nested_attributes.rb:363:in `assign_nested_attributes_for_collection_association' | |
| from /Users/gakins/.rvm/gems/ruby-1.9.2-p320@landmark/gems/activerecord-3.0.20/lib/active_record/nested_attributes.rb:254:in `party_attributes=' | |
| from /Users/gakins/.rvm/gems/ruby-1.9.2-p320@landmark/gems/activerecord-3.0.20/lib/active_record/base.rb:1569:in `block in attributes=' | |
| from /Users/gakins/.rvm/gems/ruby-1.9.2-p320@landmark/gems/acti |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Employee < User | |
| set_primary_key :employee_id | |
| has_one :user, :foreign_key => :employee_id | |
| has_many :goals, :conditions => ["goals.year = ?", Phase.year] | |
| has_many :approved_goals, :class_name => "Goal" , :conditions => ["state_id in (?) and goals.year = ?", State.approved_states, Phase.year], :order => :title | |
| has_many :employee_pending_goals, :class_name => "Goal" , :conditions => ["state_id in (?) and goals.year = ?", State.employee_pending_states, Phase.year], :order => :title | |
| has_many :supervisor_pending_goals, :class_name => "Goal" , :conditions => ["state_id in (?) and goals.year =?", State.supervisor_pending_states, Phase.year], :order => :title | |
| has_many :abandoned_goals, :class_name => "DeletedGoal", :conditions => ["deleted_goals.year = ?", Phase.year], :conditions => ["updated_at >= ?", Phase.find_by_description("Phase II").date], :order => :title |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="row-fluid"> | |
| <div class="col1 span4">Test 1</div> | |
| <div class="col1 span4">Test 2</div> | |
| <div class="col1 span4">Test 3</div> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Contact < ActiveRecord::Base | |
| has_many :groups, :through => :group_contacts | |
| has_many :group_contacts | |
| has_many :messages | |
| belongs_to :user | |
| validates_presence_of :entry |
OlderNewer