#rubyonrails - Sat 31 Mar 2007 between 04:34 and 05:21

NY Lost Funds



Palishokay, not worth it, I'll just look it up every request.
worry about that later :)
pstickneanother question... how much overhead does the additional lookup add? what do your benchmarks say?
Palishwhat benchmarks? Hehe.
It was a case of the preoptimizingjitters.
pstickne(just food for thought--keep doors open and use good design, but don't optimize prematurely)
PalishBut it's silly, so I'll skip it.
yeah :)
if I do
if() { email = 'foo' } is 'email' valid outside the if statement?
if that's the first time it's referenced
actionPalish forgets the scope rules
Palishforgets the scope rules
psticknethat's not valid Ruby
but, best way to learn these things... IRB
(the only things that create a new scope are module/class/def do/end)
hypnos22okay i love my tests
i still have a 1:0.1 code:test ratio but what i do have is golden woot
oomwrtui realize it's a bit off topic but does anyone have experience with RewriteRules?
r3factoredhey all - i have 2 rails apps on the same server. I have rails app #1 using a form to submit a post to a rest route on rails app #2 just fine. How can I go about capturing the return content from the #2 app so it does not take over and redirect to its own pages? is this possible?
pstickneoomwrtu, just ask the specific or try #apahce
oomwrtupstickne: thanks, i was just wondering how to do a "silent" redirect... i.e. a request for index.html shows the content from /otherdir/index.html without returning a special cocde
what flag rather?
I've looked at the docs and can't seem to find it.
pstickneas long as it's an internal redirect it shouldn't change the browser URL, if that's what you're asking
oomwrtuah i see, so if it goes to another domain it will change it? that makes sense i suppose
pstickneyes, external redirects have to make the trip back to the browser
oomwrtualthough the one domain is aliased on to the other's account, i.e. other.example.com is the same as other.com
psticknethere might be a special way to tell apache for that but it's beyond my knowledge
oomwrtuand i want to forward to example.com/something
ok
thanks
ilium007hi guys
can someone tell me if locomotive can run WEBrick as the http server ? I am hopinf I can just set it in locomotive.yml
BigFischHey All, how is everyone doing?
Ashimsbuilding the data for the fields to add a new row to the database with table.save... whats the best way to drop the current date and time into that?
thst is... @message.written_on = "NOW()"
what goes instead of now()
the field is DATETIME
zoidyAshims: have a look at created_at, Rails can do this by itself
Ashimsah... yeh... I remember something like this... so if the field was called created_at it would automatically fill it in with the datetime when the form is processed yes?

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

IrcArchive

NY Lost Funds