| equinoxe | can 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 |
| werdnativ | do you want a normal form or a RJS form? |
| equinoxe | i'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) |
| werdnativ | that shouldn't be your problem. end_form_tag still works. |
| equinoxe | aham ok but how come it doesn't show my form? i did EXACTLY what that guy did in the tutorial....but no form |
| werdnativ | no idea, I haven't tried that tutorial. |
| equinoxe | ooops my bad, forgot to <%= yield %> on the application layout :( |
| werdnativ | that'll do it! |
| equinoxe | hope i'll get used to this soon |
| werdnativ | those equal signs can be sneaky too... |
| equinoxe | it's quite different from php |
| joelmichael | php uses the same equal sign convention actually |
| werdnativ | I know. but it can bite you. |
| equinoxe | yes it does, but that's basically for inline output |
| werdnativ | I'm not complaining about it, mind you. I've just had some headbanging debug sessions that ended up being all about the equal sign. |
| equinoxe | oooo yeah, similar with the ";" line endings in php |
| werdnativ | at least those throw up an error. |
| equinoxe | and RoR doesn't? omg, i gotta be extra careful |
| werdnativ | I mean, when you don't output something you intended to by missing the equal. PHP is the same... |
| vpdn | hello? |
| equinoxe | has anyone done the fluckr tutorial? |
| kain | hi, 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? |
| werdnativ | yes you can. either name them like model[full_name] when you use text_field_tag |
| kain | maybe fields_for? |
| werdnativ | or use fields_for or form_for |
| kain | using form_for for two models in view form? how? |
| werdnativ | you can put fields_for inside it. |
| kain | allright, will try, thanks |
| werdnativ | also, 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. |
| DJPaul | I 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? |
| kain | yowl, it worked thanks werdnativ |
| werdnativ | you bet. |