#rubyonrails - Sat 31 Mar 2007 between 23:35 and 23:59

NY Lost Funds



ReinHmod_cure: there are a lot of activerecord callbacks, before_create is called... before a record is created.
mod_curethats it
perfect
ReinH+++++ as usual :)
before_create <-- pretty neat, it's like a database trigger etc
thxs
ReinHmod_cure: :) yw
mod_curerails is so nice
makes me shed a good tear :)
ReinHhehe
cschneidhow do I do 2 levels of includes in activerecord. I have table A links to B links to C, and I want to say give me all C's that match a given A. I know the :include =>... can do one level, is there a 2 level way?
JasonKingcschneid: has_many :through
cschneidok, I'll go google on that, thanks
JasonKingNp
/ignore #rubyonrails JOINS PARTS QUITS MODES NICKS
actionJasonKing gets familiar with a new IRC client
JasonKinggets familiar with a new IRC client
sgrovercschneid: http://grover.open2space.com/node/138 and http://grover.open2space.com/node/139
JasonKing...and switches off "send unknown / commands as text" in the meantime ;)
keyhackIs there a way to stop code execution from a method in Rails?
ypSamiis there a method for pluralizing based on a count?
JasonKingAll pluralization is done based on a count. What are you asking?
ypSamipluralizing a word in a string
pdpluralize(5, 'word')
ypSamiand if it was 1 it would not pluralize?
mrneighborlyyou could write a function quite easily i would imagine
JasonKingWouldn't be much good if it did.
:)
ypSamicool, thanks
pdindeed
ypSamihmm
how does that work out with international languages?
the app is setup with language skinning. But if the word to be pluralized was say.. arabic. Would this method work?
pdypsami, that is extremely unlikely (but i can't say no for sure)

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

IrcArchive

NY Lost Funds