#rubyonrails - Sun 4 Mar 2007 between 08:20 and 08:35

NY Lost Funds



gma_djsmacedo: that should just work, but you'll get deprecation messages
djsmacedo: if you answer my questions I may be able to help you, but I can't hang around for long
kainhttp://groups.google.com/group/rubyonrails-talk/topics everyone got their answers but me :(
djsmacedogma_: http://pastie.caboo.se/44574
paddorbla
i want to add a ++ method to Fixnum (just for testing). how?
gma_djsmacedo: have you got a model file called menu_items.rb ?
djsmacedo: if not, script/generate model menu_item
djsmacedogma_: no :| it's necessary?
gma_djsmacedo: oh yes
djsmacedo: it needs belongs_to :menu and then belongs_to :item
djsmacedo: on separate lines
djsmacedook, tnks!
actiondjsmacedo hitting head on the wall...
djsmacedohitting head on the wall...
:)
gma_djsmacedo: then, once you've made it, change :through => menus_items to :through => menu_items (i.e. drop the first "s")
djsmacedo:
djsmacedo: your join table will then be called menu_items
djsmacedook
gma_djsmacedo: which is the convension for has_many :through
djsmacedoi was thinking in habtm...
gma_djsmacedo: incidentally, I really recommend the agile web development book. this time last week I didn't know any of this.
djsmacedo: the PDF is cheap and you can search it
djsmacedook, i've read the 1st edition
gma_djsmacedo: yep, it's changed a lo0t
djsmacedogma_: tnks a lot!!! you saved my life! :)
gma_np. I take it that it works now then?
djsmacedoi'm doing now
pythonicthe PDF is worth its weight in gold.
djsmacedothe model is menu_item or menu_items?
chapeli have both
book and pdf
gma_: can you read this?
pluesch0rpythonic: the PDF doesn't weigh anything.
pythonicpluesch0r: exactly :-p
gma_djsmacedo: when calling script/generate type menu_item
pluesch0rah.
gma_chapel: eh?
chapeldo you know any articles/writeups/benchmarks about mysql and its competitors
fitheachchapel: what are you interested in? and what kind of site do plan to setup?

Page: 5 12 19 26 33 40 47 54 61 68 75 82 89 96 103 

IrcArchive

NY Lost Funds