#rubyonrails - Sun 4 Mar 2007 between 17:37 and 17:44

NY Lost Funds



zapnapsheldonh: sigh. not MY code. the reason why my code isn't working.
sheldonh: there's a similar note at nubyonrails where topfunky just says 'this won't work with script/server don't know why, moving on'
shiftDAddYE: check how much ram lighttpd uses compared to mongrel alone (no rails stack) then check performace and make your choice
sheldonhzapnap: take out the require and the assignment to config.logger, put require 'my_logger' at the very bottom of the file, and in my_logger.rb, just do class Logger, don't create a new class called DevelopmentLogger
zapnapsheldonh: i don't want to just monkeypatch Logger though
JensBHi everybody
sheldonhzapnap: why not?
DAddYEshift: my choice is mongrel because I use cap
zapnapsheldonh: the "right way" would be to subclass it. the reason, in my case, is that i want to have different format_messages for each of dev, production, etc. and do it in a non-hacky way.
sheldonh: plus, monkey patching is just evil :)
saint_cyphershift is correct in production mongrel uses less but still, go big or go home
sheldonhzapnap: *shrug* can't argue with religion :)
JensBin the acts_as_authenticated plugin, a controller "account" is created in addition to the "user" controller/model. I don't quite understand the seperation, why can't/shouldn't I put 'login', 'signup', 'logout' etc. methods in the User controller? What other user-related methods would belong to the account controller?
sheldonhzapnap: of course, if you could put your religion aside for a moment, you'd be done already :)
zapnapsheldonh: true. but subclassing this SHOULD work afaik. that's where the mystery is. I *know* how to get this working with monkey patching. not dumb, just stubborn ;)
shiftsaint_cypher: i've had mongrel in development use up over a gb of ram and god knows how much swap till it took my development box to a halt (well almost)
sheldonhzapnap: oh i seeee. and how's that working for you? :)
zapnapsheldonh: you're right, can't argue. and in this case i wouldn't even pay for it really other than knowing i just did it kind of in an ugly way. in other places that strategy could get you into trouble hehe
sheldonh: dude, chill. i just asked for help getting this working is all. not trying to argue about good coding practice with you.
sheldonh: everyone has their own 'best practices' i can't argue with you about that.
sheldonhzapnap: i'm not stressed
zapnapwell i could, but that wouldn't get anyone anywhere :)
unlinkif i have a very simple page, like a help page, which has no logic to it, should i create a stub controller for it and a view, or what?
zapnapthe issue is that this SHOULD work and i'm trying to figure out why it doesn't. that's it.
sheldonhzapnap: you said you were just being stubborn, and i cracked what i thought was a cute quip :)
Ronhu guys
hi*
zapnapsheldonh: fair enough :)
sorry, guess i'm a bit on edge. frustrated atm.
Ronwhere would be a good place to set: ActionController::Base.default_charset='iso-8859-1' ?
zapnapmy apologies
sheldonhno worries, i should no better than to poke a man who's reading initializer code :)
zapnapi really like rails a lot, but there's definitely a hidden curve that you don't hit until you start doing "real stuff" with it ;)
sheldonhzapnap: could you try pushing the require outside the Rails::Initializer.run do block?
zapnap: dead right
omegadanIs there an ActiveRecord method which will tell me how many columns a table has? (count (SELECT *) essentially?
zapnapsheldonh: well the only reason it's in there is because you usually set config.logger within the initializer block
not sure how i'd do that externally
sheldonhzapnap: the space between novice and expert is... full of head scratching :)
saint_cypherunlink: thought about going static?

Page: 3 10 17 24 31 38 45 52 59 66 73 80 87 94 101 108 

IrcArchive

NY Lost Funds