search for: form_start_tag

Displaying 2 results from an estimated 2 matches for "form_start_tag".

2006 Jul 23
4
Anything like with_scope for ActionController?
...ted to the <id> being used by the action/controller pair. It''s identifying a container object whose contains are operated on by the actions. I currently have this working with routes, however I need to tack on an extra parameter to all the url generating functions (url_for, form_start_tag, named_route_url...) to get the mapping to pick up the custom URL parameter. Having to remember to append :short_name=>@my_object.short_name (with or without to_param magic), is getting annoying and the repetition is getting ugly. Is there anything like ActiveRecord''s with_scope...
2006 Mar 23
3
How to redisplay submitted data on validation error?
Hi! If i have an object it''s easy. But i''m making a simple contact form and i check if email address is correct. If it''s not i redisplay the form with the info that there was an error (should i use redirect_to or render :action? what''s the difference?), but all previously submitted data is lost. I tried creating variables using names of the form fields, but