#rubyonrails - Sat 14 Apr 2007 between 09:30 and 10:05



equinoxecan anyone explain this? :start_form_tag and end_form_tag Use form_tag with a block. my webric says that using form_remote_tag is deprecated
werdnativdo you want a normal form or a RJS form?
equinoxei'm doing the flickr screencast on rubyonrails.org. so i write the form, run the server, nothing displays, but the server output says : DEPRECATION WARNING: end_form_tag is deprecated and will be removed from Rails 2.0 See http://www.rubyonrails.org/deprecation for details. (called from _run_rhtml_47app47views47flickr47index46rhtml at script/../config/../app/views/flickr/index.rhtml:10)
werdnativthat shouldn't be your problem. end_form_tag still works.
equinoxeaham
ok
but how come it doesn't show my form? i did EXACTLY what that guy did in the tutorial....but no form
werdnativno idea, I haven't tried that tutorial.
equinoxeooops my bad, forgot to <%= yield %> on the application layout
:(
werdnativthat'll do it!
equinoxehope i'll get used to this soon
werdnativthose equal signs can be sneaky too...
equinoxeit's quite different from php
joelmichaelphp uses the same equal sign convention actually
werdnativI know. but it can bite you.
equinoxeyes it does, but that's basically for inline output
werdnativI'm not complaining about it, mind you. I've just had some headbanging debug sessions that ended up being all about the equal sign.
equinoxeoooo yeah, similar with the ";" line endings in php
werdnativat least those throw up an error.
equinoxeand RoR doesn't? omg, i gotta be extra careful
werdnativI mean, when you don't output something you intended to by missing the equal. PHP is the same...
vpdnhello?
equinoxehas anyone done the fluckr tutorial?
kainhi, I'm trying to build a form that can enter value for two models, so I'm using form_tag and sort of <%= text_field_tag :full_name %>
how can I group attributes sent by model?
I can't?
werdnativyes you can.
either name them like model[full_name] when you use text_field_tag
kainmaybe fields_for?
werdnativor use fields_for or form_for
kainusing form_for for two models in view form?
how?
werdnativyou can put fields_for inside it.
kainallright, will try, thanks
werdnativalso, form_for doesn't have to apply to everything inside it, you can skip some from the block binding and define your own field name.
DJPaulI have a datetime column in a table. i'm going to use find_all_by in the app, but find_all_by_when reads funny. Is there another form of find_all_by magic for datetime columns or is it just ugly?
kainyowl, it worked
thanks werdnativ
werdnativyou bet.

Page: 5 12 19 26 33 40 47 54 61 

IrcArchive