Displaying 3 results from an estimated 3 matches for "form_tag_html".
2010 Aug 14
0
[rails3.0.0.beta4] extend form_tag to always include a hidden field
hi there,
I want every form in the site to add a hidden_field, basically I want them
to always submit the I18n.locale, I''ve tried to alias form_tag_html method
of ActionView::Helpers::FormTagHelper like this:
# in #{MY_APP_ROOT}/lib/action_view/helpers/form_tag_helper.rb
module ActionView::Helpers::FormTagHelper
def form_tag_html_with_locale(html_options)
form = form_tag_html_without_locale(html_options)
form.safe_contact(hidden_field_t...
2008 Apr 09
3
form_tag and form_for cause #protect_from_forgery errors
...39;
vendor/rails/actionpack/lib/action_view/helpers/
form_tag_helper.rb:453:in `token_tag''
vendor/rails/actionpack/lib/action_view/helpers/
form_tag_helper.rb:430:in `extra_tags_for_form''
vendor/rails/actionpack/lib/action_view/helpers/
form_tag_helper.rb:438:in `form_tag_html''
vendor/rails/actionpack/lib/action_view/helpers/
form_tag_helper.rb:41:in `form_tag''
vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb:
204:in `form_for''
app/views/users/new.fbml.erb:2:in
`_run_erb_47app47views47users47new46fbml46erb'&...
2008 Jun 30
1
Help with form_for
.../new.rhtml:4:in
`_run_erb_47app47views47sessions47new46rhtml''
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/
form_tag_helper.rb:431:in `extra_tags_for_form''
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/
form_tag_helper.rb:439:in `form_tag_html''
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/
form_tag_helper.rb:41:in `form_tag''
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/
form_helper.rb:252:in `form_for''
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_...