#rubyonrails - Fri 9 Mar 2007 between 00:01 and 00:09

NY Lost Funds



AnalogHoleHow come flash messages often carry over to multiple requests? Like if a set a flash message and don't redirect, it displays on the next page.
crapspackledanyone know the name of the collection that i would check to determine if there were errors in a controller action?
AnalogHole flash messages are session variables, which can do that
AnalogHoleI know that they CAN do that, but what if I don't want them to be displayed more than once?
crapspackledi don't think they're supposed to do that, but there's always the validatation dealy
edibileis there an easy way (function already written) to sum all the elements in a column in list.rhtml?
geezusfreeekAnalogHole: you could just not set a flash message unless you intend to redirect
AnalogHoleedibile; an HTML column? Or DB column? For the db, you can use Model.sum(:field)
geezusfreeeks/intend to redirect/intend to show a flash message/
lonnypythonic: I have ssl working under nginx.
AnalogHolegeezusfreeek; For example, if an update fails, I just want to redisplay the form (render :action => 'edit') and I want to display the error messages. redirecting would lose the changes that the user made.
edibiledb column, well, it's coming from a database. have for column in X.content_columns, i will try that out, thanks AnalogHole.
lonnypythonic: I should say "we", because it took some work on the host end to get it running... but that is partly because most of their customers are behind Apache.
eghjayteehello
mxNethi guys, is there built in support for sha256 encryption in ruby/rails? would you please point me to info/examples of its use?
lonnypythonic: Excuse me... I should have said "sessions". That too.
vadersolomxNet: yes sir
geezusfreeekoh, so your problem is that it's sticking around even after the user has moved on from the form?
vadersolomxNet: load require 'digest/sha2'
AnalogHoleSometimes. Thats what is annoying.
pythoniclonny: how did you do it?
eghjayteeIf I need to create a post-commit hook in snv, is that within the repository, or on my local machine? Also, does anyone have any links to howtos?
AnalogHoleThe flash message isn't always cleared after being dispayed
vadersolomxNet: Digest::SHA256.hexdigest("welloWorld")
pythonicflash sucks
SkizAnalogHole: because you are doing flash[:foo] = blah ;; render :action => 'moot' instead of flash.now
lonnypythonic: ssl_requirement plugin.
dionysianpythonic: not that flash
mxNetvadersolo, gotcha. Awesome, appreciate deeply!
mrcucumberHey, I messed up my database so I dropped the table and then thought I'd just run a 'rake db:schema:load' and be on my way, but unfortunately it seems to have flipped out, and give me a mysql error about not finding the users table, the exact message is at http://pastie.caboo.se/45759
AnalogHoleSkiz: what's flash.now?
pythonicssl? what does ssl have to do with sessions?
rails flash sucks, too.
SkizAnalogHole: for only this instance, its not held in session past the render
dionysianpythonic: how so?
actionSkiz sprays pythonic with troll-B-gone
Skizsprays pythonic with troll-B-gone
how about a nice cup of GET THE FUCK OUT?
lonnypythonic: Sorry, I have some distractions that are causing me to get things confused.
pythonicthe flash is for the next request.
wherever that next request might be...

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

IrcArchive

NY Lost Funds