search for: form_tag_helper

Displaying 11 results from an estimated 11 matches for "form_tag_helper".

2008 Apr 09
3
form_tag and form_for cause #protect_from_forgery errors
...39; %> Teacher</ label> vendor/rails/actionpack/lib/action_controller/ request_forgery_protection.rb:114:in `form_authenticity_token'' (eval):2:in `send'' (eval):2:in `form_authenticity_token'' 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/helpe...
2007 Jul 12
1
form_tag doesn't accept a string anymore in edge rails?
...orm_tag verifications_path(@user), :method => :post do %> vendor/rails/actionpack/lib/action_controller/url_rewriter.rb: 38:in `merge'' vendor/rails/actionpack/lib/action_controller/url_rewriter.rb: 38:in `url_for'' vendor/rails/actionpack/lib/action_view/helpers/form_tag_helper.rb: 371:in `html_options_for_form'' vendor/rails/activesupport/lib/active_support/core_ext/object/ misc.rb:23:in `returning'' vendor/rails/actionpack/lib/action_view/helpers/form_tag_helper.rb: 369:in `html_options_for_form'' vendor/rails/actionpack/lib/action_vi...
2009 Sep 29
10
rails 2.3.3 upgrade shows error
You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occurred while evaluating nil.<< any ideas ? Application works fine with rails 2.1.0 Sandip -- Ruby on Rails Developer http://funonrails.wordpress.com www.joshsoftware.com http://brandpotion.com (Latest project released) --~--~---------~--~----~------------~-------~--~----~
2008 Jun 30
1
Help with form_for
...RAILS_ROOT: /home/eyp/workspace/lists Application Trace | Framework Trace | Full Trace (eval):2:in `protect_against_forgery?'' app/views/sessions/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/ge...
2008 Aug 19
5
RSpec raising routing errors where Rails doesn''t?
Hopefully someone here can help me figure out why the ERB: <% form_for(@fund, :url => {:host => PRIVATE_HOST}, :html => {:class => ''fund'', :multipart => true}) do |f| %> raises an error in my specs: No route matches {:action=>"index"} but works fine in my app and generates the following, desired HTML: <form
2007 Oct 05
7
Trouble with text_field_tag
I am trying to implement a basic login page: login.rhtml 1 <fieldset> 2 <% form_tag do %> 3 <label for="name">Name:</label> 4 <%= text_field_tag :name, params[:name] %> 5 <label for="password">Password:</label> 6 <%= password_field_tag :password, params[:password] %> 7 <%= submit_tag
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_tag(''locale'', I18n.locale)) end alias_method_chain :form_tag_html, :locale end but I get this...
2006 Dec 08
2
UJS plugin incompatible with RSpec?
...hod_missing'' #{RAILS_ROOT}/vendor/plugins/unobtrusive_javascript/lib/tag_helper_patches.rb:17:in `tag_options'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/helpers/tag_helper.rb:14:in `tag'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/helpers/form_tag_helper.rb:47:in `form_tag'' #{RAILS_ROOT}/app/views//accounts/edit.rhtml:3:in `_run_rhtml_47app47views47accounts47edit46rhtml'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:328:in `compile_and_render_template'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/...
2008 Jul 01
4
Errno::EIO - Input/output error
.../gems/1.8/gems/actionpack-1.13.6/lib/action_view/helpers/capture_helper.rb:108:in `capture_erb_with_buffer'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/helpers/capture_helper.rb:67:in `capture'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/helpers/form_tag_helper.rb:51:in `form_tag'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/helpers/prototype_helper.rb:180:in `form_remote_tag'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/base.rb:325:in `send'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/act...
2006 Apr 27
5
Realtime Form Validation Plugin Available
Granted, I''m still very much a newbie, but after reading an article on AJAX that basically states at one point that just because you can use AJAX doesn''t always mean you should, I have to ask: Why bother contacting the server (even if it is an insignificant amount of bandwidth) to validate the sanity of form data (unless you''re actually validating against something in
2011 Feb 09
16
rails 3.0.4 broke yield :javascript ?
hello, I have today updated my rails app to 3.0.4 security release but now this yield :javascripts fails in the layout and I get my custom js escaped as text in the view. anybody seeing this also? tia, jk -- www.least-significant-bit.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to