search for: 36mtask

Displaying 1 result from an estimated 1 matches for "36mtask".

2012 Jun 30
5
Problems with associations
...accessible :user_id, :project_id, :name belongs_to :project end Project.rb class Project < ActiveRecord::Base attr_accessible :name, :description has_many :tasks end But when I go to my prompt and I make a SELECT with task, none project is returned. irb(main):001:0> Task.all ←[1m←[36mTask Load (0.0ms)←[0m ←[1mSELECT `tasks`.* FROM `tasks` ←[0m ←[1m←[35mEXPLAIN (30.0ms)←[0m EXPLAIN SELECT `tasks`.* FROM `tasks` EXPLAIN for: SELECT `tasks`.* FROM `tasks` +----+-------------+-------+------+---------------+------+---------+------+------+-------+ | id | select_type | table | type | p...