#rubyonrails - Sun 4 Mar 2007 between 13:08 and 13:17

NY Lost Funds



jackyyll1equire "rake/clean"
_davgotta make you work a little
not sure if you actually need either of those requires actually, i forget what they're in there for
jackyyll1i have to change the things in here correct?
SteveDave_I guess if I set 'session :session_expires => 1.year.from_now' in the application controller, then added an expiry time to session[:expires_on], i could then test against that in a :before_filter in the application controller and delete the cookie manually if it has expired?
jackyyll1like the db user and pass and stuff
_davno, i don't think so
jackyyll1and the db nam
_davit should read your database.yml
jackyyll1e
oh.
SteveDave_kind of arse-about face as far as rails is concerned I guess, but I can't think of another cleaner way to do it?
_davoh yeah, the db name
hmm, this must be an old version, i had it all getting that automagically i thought
jackyyll1so just replace the lumos stuff?
_davassuming cfg represents database.yml, you can modify this to use vfg["test"]["database"]
yeah
SteveDave_hmm - i'll give that a try. thanks for the idea bouncing
Ronanyone using file_column on (mt) ?
or rmagick?
keeps telling me: MissingSourceFile (no such file to load -- RMagick):
any clues?
_davdid you install the gem?
Ron_dav: yeah
_davcheck the website or readme, i think that's a common problem and will be in the FAQ
Rongem list --local | grep magick
rmagick (1.15.3)
jackyyll1_dav, rake gave me an error about builder
"no such file to load -- builder"
_davdelete that line
ron, you have more than one version of ruby installed?
if so, check that rails and the gem are using the same one
jackyyll1now i get "undefined local variable or method 'database_config' for main:Object"
_davdoh
ok, just hardcode your stuff
Ron_dav: i don't think so. How can i check it?
_davwell ifyou didn't install more than one, you probably don't
Ron=)
reberanyone using engines plugin here ?
_davjackyyll1: reload that pastie url, i added the database_config method (sorry)

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 93 100 107 

IrcArchive

NY Lost Funds