Displaying 1 result from an estimated 1 matches for "1class".
Did you mean:
class
2008 Dec 11
2
uninitialized constant ActionVie
...ing the surrounding div if validation error
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
if html_tag.include?("class=")
html_tag.sub(%r{(class=["''])}, ''\1invalid '')
else
html_tag.sub(%r{(<[^ ]+ )}, ''\1class="invalid" '')
end
end
..
end
BUT running the console I get an error :
yves$ script/console
Loading development environment (Rails 2.2.2)
/...i/config/environment.rb:111:NameError: uninitialized constant
ActionView
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/li...