search for: schoolclasses

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

Did you mean: schoolclass
2006 Mar 09
1
very basic newbie question!
Bringing up (trying!) my first rails app... no OO experience the scaffold generator automatically creates new activerecord objects for the create/edit form using: def new @schoolclass = Schoolclass.new end I wanted to initialize the object, so I added to the object creation statement as follows: @schoolclass = Schoolclass.new(:day=>1, :start_time=>"2006:01:01 00:00:00,
2006 Mar 09
1
OOP basics
I''ve got: def new @schoolclass = Schoolclass.new(:day=>1, :start_time=>"2006:01:01 00:00:00, :description=>"enter description here") breakpoint() end after the breakpoint, I can @schoolclass.inspect and see the @schoolclass attributes, however @schoolclass.day, @schoolclass[:day] and @schoolclass["day"] all return NIL. what am I doing wrong?
2006 Feb 18
6
Naming join models
I''ve been playing around with EdgeRails and checking out some of the new features. The one that will probably have the biggest affect on my designs is join models (or :through associations). For those not familiar with this feature, it lets you replace your habtm association with a pair of has_many associations indirected through an intermediate model class. Looks like good