search for: tag_help

Displaying 9 results from an estimated 9 matches for "tag_help".

Did you mean: ac_help
2008 Mar 06
1
Unitialized constant ActionView::Helpers::TagHelper::Set
Hi all, I write the following test to a simple plugin require ''rubygems'' require ''test/unit'' require File.dirname(__FILE__) + ''/../lib/meta_tags'' require ''action_view/helpers/tag_helper'' class MetaTagsTest < Test::Unit::TestCase include MetaTagHelper include ActionView::Helpers::TagHelper . . . end and when I run rake in the root plugin directory I get the following error /usr/bin/ruby18 -Ilib:lib "/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/...
2006 May 18
2
attempt to override the ''tag'' method
I want to override the ''tag'' method in ActionView::Helpers::TagHelper to do some generalized error handling similar to the way scaffolding puts a red border around fields that fail validation. I''ve created a file lib/rails_patches/tag_helper.rb which contains the following. module ActionView module Helpers module TagHelper alias_method :orig_tag, :tag def tag(name, options = nil, open = false) breakpoint orig_tag(name, options, open) end end end end I then have a view with t...
2011 Jan 22
1
uninitialized constant ActionView::Helpers::TagHelper::ERB (NameError)
...t to refactor into "myapp/app" and after running the command ''rspec collector_helper_spec.rb'' I get the following error: ************************************************************************** C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-3.0.3/lib/action_view/helpers/tag_helper.rb:10: uninitialized constant ActionView::Helpers::TagHelper::ERB (NameError) from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'' from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require''...
2006 Jun 16
2
DISABLE auto-escaping in image_tag helper
Is there any way to disable image_tag''s automatic escaping of special html entities in it''s :alt tag? Example: >From the controller: @sale[''title''] = ''My Company Product&copy;'' In the view: <%= image_tag(''path/to/file.png'', :alt => @sale[''title'']) %> Output: <img alt="My Company
2005 Mar 02
2
form action in mail (actionmailer)
..."http://myhostname/mycontroller" %> but met same errors /gems/actionpack-1.3.1/lib/action_view/helpers/url_helper.rb:11:in `send'' /gems/actionpack-1.3.1/lib/action_view/helpers/url_helper.rb:11:in `url_for'' /gems/actionpack-1.3.1/lib/action_view/helpers/tag_helper.rb:35:in `start_form_tag'' (erb):5:in `render_template'' 2. so I changed my appoach to plain html likes <form action="http://myhostname/mycontroller/myaction" method="post"> blah blah, most hidden type <input type="submit"> </fo...
2006 Dec 08
2
UJS plugin incompatible with RSpec?
...all'' /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.4/lib/spec/expectations/sugar.rb:13:in `_method_missing'' /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.4/lib/spec/expectations/sugar.rb:9:in `method_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.rh...
2006 Apr 20
4
JavaScriptGenerator Dead End
Hi All, I posted earlier about a problem I was having with the various remote view methods escaping all the javascript in my callbacks. I was quickly informed that that''s just what they do, and offered some workarounds. However, in actually working with this, I''m finding that this one little thing is forcing me to write some REALLY ugly code. Where I thought I could
2011 Nov 02
3
form_for text_field
I have a form ... html ..... <% form_for @person do |f| %> ... html ..... <%= f.text_field :last_name %> ... html ..... <% end %> When last_name field of @person doesn''t contains french special symbols like ''é'', all characters are displayed in the input control (f.text_field :last_name ). Else only symbols before french special symbol are
2005 Jun 24
14
apache2 fastcgi (fcgi) internal server errors, still :(
...dispatch.fcgi" (pid 10241) terminated due to uncaught signal ''6'' (Aborted) [Fri Jun 24 12:35:58 2005] [warn] FastCGI: server "/var/www/project_name/public/dispatch.fcgi" restarted (pid 11044) /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_view/helpers/ tag_helper.rb:30: [BUG] Segmentation fault ruby 1.8.2 (2005-04-11) [i386-linux] [Fri Jun 24 12:35:58 2005] [error] [client 172.20.0.175] FastCGI: incomplete headers (0 bytes) received from server "/var/www/project_name/public/dispatch.fcgi" [Fri Jun 24 12:35:58 2005] [warn] FastCGI: server...