Displaying 3 results from an estimated 3 matches for "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, :description=>"enter description here")
I was expecting that I could access the...
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[&qu...
2006 Feb 18
6
Naming join models
...nk the problem is
trying to turn a verb-type relationship into a noun-type reification
of that relationship.
For example, what do you call the reification of the relationship of
a Participant to a Meeting? A "Participation"? An "Attendance"?
What about a Student to a SchoolClass? A ProjectManager to a
Project? Start pluralizing and things get even uglier. Naked join
tables have their drawbacks, but at least they are easy to name.
I suppose I could name a class ParticipantEventJoin to get a table
participant_event_joins. While that would make things very obvious...