#rubyonrails - Sat 31 Mar 2007 between 06:28 and 06:33

NY Lost Funds



PalishI don't understand SQL that intimitely.
I'm trying to learn.
BigFischit's common sense
I don't know sql
Ashimshmmm.... trying to get an idea about how your datebase is structured...
Palishwell, describing it in terms of "OUTER JOIN" won't help me :)
ReinHin that case, @classroom.sections.find(:all, :include => 'students).map(&:students).include? @student
Ashimsmy powers of imagination are failing me
BigFischAshimis: Member has_many :memberships
PalishAshims: I've only said the structure about 3 times.
ReinHPalish: ^^ That's one query
Palish: look at this... one sec, I'll pastie
PalishReinH: I don't understand that though
ReinHPalish: one sec
PalishI can't use what I don't understand.
BigFischAshims: Memberships includes the checkout process to upgrade to a "paidmember" via STI. I'm trying to get the coupons to give a discount to the total price of that transaction
actionReinH sighs
ReinHsighs
Palishwhat I don't get
is that okay
AnakinKainwasssaaaaap!
ReinHone sec
PalishI have this bit of rails:
has_many :teachers, :through => :teacher_entries, :source => :teacher
AshimsAnakinKain is awesome
Palisha teacher entry consists of a user_id and a classroom_id
BigFischReinH: Where do you live?
Palishthat I get.
Now, doing has_many :students, :through => :section_entries, doesn't make sense to me
because a section entry is a pair of user_id and section_id
ReinHBigFisch: Austin, TX
AnakinKainlol Ashims and who you be?
AshimsAnakinKain: I'm awesome too-- of course
AnakinKainGood, that makes the two of us.
Ashimstotally does
ReinHPalish: http://pastie.caboo.se/50762
AnakinKainanyhow, i got this jscript that is pulling some major syntax errors.
<%= javascript_tag( image_tag(theme.bgsmall, :size=> "100x100"), "onclick="Element.setStyle('background_main', {background-image: theme.bglarge} )"" %>
AshimsPalish: it seems from what you've said all you want is the id which is already stored in the student_entries table
Palish: :S
PalishAshims: *what* id?

Page: 3 10 17 24 31 38 45 52 59 66 73 80 

IrcArchive

NY Lost Funds