search for: form_observ

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

Did you mean: form_observer
2006 Oct 29
1
:with for observe_field helper--parameter passing
I am trying to write a :with hash for the observe_field helper watching a select which was built by select_month--it contains all of the months. The current :with that I have, which works, is: :with => "month" ,which passes the updated month in the select through params[:month]. However, I need to pass the current year through params[:year], which does not change when the month
2007 Jan 22
0
How to stop return key from submitting form
...to enter several items, and then submit the form which goes to the next page. I would like the user to be able to enter an item and hit the return key to toss it into the table, but either Rails or the browser wants to help me out by hooking the return key up to the main submit button. I put in a form_observer in hopes that I could trap the return key in there, but no joy; the submit button "sees it" first and goes on to the next page instead of adding the item. I did a search and all I found was the addition of some javascript to the options for the field tag, like this: :onkeypress => &...