#apache #archlinux #asterisk #centos #debian #gentoo #haskell #kde #kubuntu #lisp #math #mysql #perl #python #ruby-lang #rubyonrails #suse #ubuntu #vim #wikipedia 0 1 2 3 4 5 6 7 8 9 10 11 12 13
Top Prev 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 Next
#rubyonrails
<tpope> you're all over the map
<tpope> habtm is for models, not controllers
<DrZoot> ok well in that case, ill stick with darwin ports
<viewlogic> DrZoot, i wouldn't do that either
<djsmacedo> tpope: yes, i know, the question is about controller that save in habtm models
<tpope> I'd use mac ports for ruby and rubygems
<viewlogic> your going to have a very very hard time getting ruby 1.8.4 installed with darwinports
<viewlogic> you can install 1.8.5 - but breakpointer won't work
<tpope> djsmacedo: that's better...
<viewlogic> .
<st3v3dnd> If I needed to know who the current user was from within my models would it be appropriate to have a self.current_user call on the User model, or would that cause issues with other connections?
<DrZoot> but I do have one question, last night I couldnt get gem to install sqlite3, in the end I gave up and installed rb-sqlite3 from mac ports, is that basically the same as the sqlite3 gem?
<tpope> where's that crazy eriberri presentation about kittens and jars
<MilesZS> People love their breakpointer.
<tpope> that's what djsmacedo needs
<tpope> DrZoot: I think so
<DrZoot> tpope: cheers
<viewlogic> DrZoot: don't install sqlite3 - install "sqlite3-ruby"
<starnix17> anyone know how to create a nice HTML calendar like this using rhtml/ruby? http://rubyurl.com/w28
<tpope> listen to viewlogic
<tpope> he sounds like he actually uses a mac
<DrZoot> viewlogic: in mac ports its called rb-sqlite3 but i know what you mean
<MilesZS> Times like these I love my Linux box.
<viewlogic> i do ;)
<tpope> cheers MilesZS
<tpope> but it's rude to brag
<viewlogic> DrZoot: you shuld use "gem install" to install gems instead of darwinports
<captproton> starnix17, that's a cool calendar.
<DrZoot> viewlogic: yeah i know, but gem wasnt working for me last night
<djsmacedo> tpope: i don't know how to save data in relational tables
<MilesZS> hehe, I'm sorry. I use a Mac at work, but I find myself shunning it for Linux when possible.
<captproton> are you sure that it's rails?
<viewlogic> DrZoot: keep in mind that "sqlite3" gem and "sqlite3-ruby" gems are not the same
<starnix17> captproton: it's in php. I was just wondering how to go about creating one (logic-wise) with ruby/rails
<DrZoot> viewlogic: really?
<viewlogic> really ;)
<viewlogic> i learned the hard way, hehe
<djsmacedo> tpope: script/generate scaffold not generate the form to this work :|
<captproton> starnix17, is it opensource php?
<DrZoot> viewlogic: well I must have got the right one because I have a functional sqlite3 rails adaptor
<starnix17> capitalist: no
<starnix17> unfortunately
<tpope> djsmacedo: http://www.slash7.com/presentations/overcoming_scaffolding_addiction.pdf
<MilesZS> hehe
<viewlogic> yeah, sounds like you installed the gem via macports
<captproton> starnix17, did you mean me?
<djsmacedo> tpope: tnks!
<viewlogic> IMO, you generally you should use gem to install gems though if you can
<starnix17> captproton: yeah, sorry. tab auto-completion was acting goofy
<MilesZS> starnix17: I know a guy from whom you could license some calendar code, hehe
Previous Page Next Page