Displaying 2 results from an estimated 2 matches for "month_id".
Did you mean:
month_
2006 Dec 05
1
has_many :through questions
I have a database with 4 tables
Months has_many :weeks
Weeks has_many :days
Days has_many :hours
Hours
Weeks belong_to :month
Days belong_to :week
hours belong_to :day
I need to access the month_id in the Hour.rb model.
find(:first, :conditions => ["user_id = ? AND month_id = ?", user_id,
month_id])
Thanks
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups...
2006 Jul 20
1
Ajax and observe_field not updating specified DIV
...39;2005'',2005],[''2006'',2006],[''2007'',2007],
[''2008'',2008],[''2009'',2009],[''2010'',2010]],
{:selected => @year})
%>
<%= observe_field ''month_id'',
:update => ''main_content'',
:url => { :controller => ''calendar'', :action
=> ''modify_month_view''} %>
<%= observe_field ''year_id'',...