search for: 1invalid

Displaying 3 results from an estimated 3 matches for "1invalid".

Did you mean: invalid
2006 Feb 26
11
Asterisk question
Any idea how to read an external file, grab some stuff and push it back into an Asterisk variable? I can do it the other way with: system(echo "${UNIQUEID} =>" >> /home/ast/curr_calls) but I'm a bit stumped on how to go the other way around.... much thanks, Paul Hales
2008 Aug 25
21
How much test data to use in specs
I''m not sure how much test data I should be using in my specs. I''m writing specs for the Property model in my Rails app. Its "address" attribute is going to be validated with this regex: /\A\d+[a-z]? [-'', a-z]{2,128}\Z/i At the moment, my plan is to spec out the following possibilities. A property is invalid if its address: 1) doesn''t begin with
2008 Dec 11
2
uninitialized constant ActionVie
...ig/environment.rb I wrote Rails::Initializer.run do |config| ..... # disabling 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...