Displaying 1 result from an estimated 1 matches for "has_towns".
2006 Aug 10
6
passing hash from controller to view and pluralization?
...y towns and towns
belong_to counties.
now my question:
i thought i would need to do is say @counties = Counties.find(:all).
should that not return to me all counties in the counties table WITH all
towns associated with each county?
in my view i was getting error when doing this
if(counties.has_towns?)
saying undefined has_towns methods...
another question about plurulization. if i were to say @county vs
@counties, is there a difference? would RoR assume i just want
information for 1 county? or does RoR treat it like the same variable?
--
Posted via http://www.ruby-forum.com/.