#rubyonrails - Sun 20 May 2007 between 02:06 and 02:54

NY Lost Funds



SkramXwhat's the correct way of doing something like:
<ul><%= hidden_field_tag "recipients", @recipients.email %>
how do I set the value to @recipients.email
aKKiLLafjust like that
So only when I set the enviroment to production do I get the problems
unlinkwhere is schema information stored? i changed my schema, ran rake db:migrate, and i get sql errors whenever i try to write to the db
i removed my database and schema.rb before running rake db:migrate
r38yhey, has anybody here dealt with using rspec to spec out controllers with nested resources?
I'm testing to make sure I get a redirect if the user isn't logged in with http://pastie.caboo.se/63065 and I'm not getting a redirect
they work on resources that aren't nested, but there is no redirect when there should be with the nested
aikenbenarg, i can't create a new schema in MySQL in OS X, how wonderful :(
crashes everytime
Casey123hey
how can i display a flash only if there is one? my template right now always displays the box :/
ElricVIIIit should only appear if there's something there
r38yif flash[:notice]
Casey123thanks
r38yCasey123: here is a good way to handle flash http://railscasts.com/episodes/18
Casey123thanks :)
r38ynp
Goetmet:notice is a pre-defined symbol ?
or we can use whatever we want there
flash[:any_word]
?
Casey123does rails/prototype have some yellow fade shortcut
i recall it having that but can't remember
eadzcan you store a symbol in a string field in a model?
or what type should I give the field in a migration to store symbols ?
phuoreadz: you could store strings and intern them once you pull them out of the database
eadzwhen i store a sybmol it is stored in the database as ---- :sym\n
phuoreadz: serialized?
eadzbut when i pull it out again, i don't get an unsearilsed version
phuoreadz: did you put 'serialize :attribute' in the model?
eadzi.e. obj.field = :sym; obj.reload; obj.field => '--- :sym\n'
phuor: no, so why is rails serializing it?
PlugHi, I've got the 'mongrel upload progress doesn't update' bug that lots of people have had on the mongrel mailing list, but for which none of the workarounds seems to work.
eadzi wouldn't mind if it un-serialized it too..
PlugAnyone got any undocumented wisdom to share? no proxy, no DRb (yet, just one instance), nothing in @status.
phuoreadz: well, if you add "serialize :attribute" to the model, I bet it will.
eadz: seems strange, though.

Page: 1 8 15 22 29 

IrcArchive

NY Lost Funds