#rubyonrails - Sat 24 Mar 2007 between 22:55 and 22:59

NY Lost Funds



court3naysilly
pastiehttp://pastie.caboo.se/49323 by AnakinKain.
court3nay:D
bosiehow can i connect to two databases when both models have the same name?
jontecarchetypo: yes, there is look here... let me post
archetypojontec
just change it
court3naybosie: you can't but rename the model and use set_table_name
zachinglishttp://pastie.caboo.se/49320 <-- having a wierd testing error, or maybe it's just me being wierd
any idea?
jontecarchetypo: http://pastie.caboo.se/49324 this migration worked.
bosiecourt3nay: thx worked
jontecI know that one has options, but that's problem upstairs
that problem's*
court3nayregardless, change it to :integer
zachinglisCourt3nay bud, Can you put me on the right track?
jontecand by upstairs I mean with the rails programmers
AnakinKainwell I will return in several moments.
court3nayzachinglis: what line fails
also
archetypojontec p267 agile rails, anatomy of a migration shows valid column types
court3nayline 29 assert @newpackage.save not save!
.save! will always raise
zachinglisOh, I did that to find the errors
oh ok
archetypoint aint in it
zachinglisso that could be my problem
court3nayassert @newpackage, Package won't work either
zachinglisIt's not liking my associations, user_id and carrier_id
court3nayassert_equal
jontecarchetype: then why does it work? I understand I'm being difficult, but why would they make it work in one and not the other
court3nayassert won't do shit
zachinglisThanks court3nay, been a while since i've done Tests *blush*
archetypohere's my guess you might be hitting a name thing where because you are setting a default value it understands wtf you mean
court3nayhmm... assert @newpackage, Package... never seen syntax like that.
archetypobut i haven't looked at the mgration source
court3nayassert @newpackage.is_a?Package
jax_beachbumcourt3nay: thanks man. I had a line of config that was outside of the config block.
zachingliscourt3nay: Cheers.
court3naynow.. as to that validation

Page: 2 9 16 23 30 37 44 51 58 65 72 79 

IrcArchive

NY Lost Funds