Can we do something like this? <%= start_form_tag :controller => "dashboard", :onsubmit => "javascript: confirm(''hello world'');" %>
On Jun 13, 2005, at 12:10 PM, John Kopanas wrote:> Can we do something like this? > > <%= start_form_tag :controller => "dashboard", :onsubmit => > "javascript: confirm(''hello world'');" %>Yup: <%= start_form_tag({:controller => "dashboard"}, :onsubmit => "confirm(''hello world'')" %> Note the curlies wrapping the first parameter--the url options and the tag options are two separate hashes, and if you specify both, you have to explicitly specify the boundaries of the first hash. - Jamis