search for: year_id

Displaying 3 results from an estimated 3 matches for "year_id".

Did you mean: car_id
2009 Apr 24
1
RoR - getting started with database relations
...ter a part for a 1999 Jeep Cherokee, how would I link the part (say with part_id = 1337) to 1999, Jeep, and Cherokee? Would I need to refine my setup here and link the part directly to the year, make, and model by adding belongs_to and has_many or would I simply add a column for make_id, model_id, year_id to my "create_table :parts" method? ie: create_table :parts do |t| t.column :year_id t.column :make_id t.model :model_id end The other thing confusing me is the ":through => something" stuff. In one example I see can see creating a friendship table that links two use...
2006 Apr 25
2
School Years/Teams listing problem
...thought the following was working until I started populating the table with teams for more than one year. For views/years/list.rhtml: <% for year in @years %> <tr> <td> <%= link_to year.name, :controller=>"teams", :action => "list", :year_id => "#{year.id}" %> but it doesn''t matter what year I click on, I get all possible teams . . I have tried various permutations but can''t see how to do it. My tables look like (in table years, I have set the id to be the same as the name eg 1965): Table "publ...
2006 Jul 20
1
Ajax and observe_field not updating specified DIV
...d ''month_id'', :update => ''main_content'', :url => { :controller => ''calendar'', :action => ''modify_month_view''} %> <%= observe_field ''year_id'', :update => ''main_content'', :url => { :controller => ''calendar'', :action => ''modify_year_view''} %> </div> <div id="embed_calendar"&g...