search for: addresscheck

Displaying 1 result from an estimated 1 matches for "addresscheck".

2006 Jul 19
5
Model Validation - with a twist
...real) before saving the whole thing. The link if @bstore.valid? just renders the action add but doesn''t show the nice error messages saying the field was blank. Any ideas? Here''s my code so far: def create @bstore = Bookstore.new(params[:bookstore]) if @bstore.valid? addresscheck = params[:bookstore][:address] + " " + params[:bookstore][:city] + ", " + params[:bookstore][:state] + " " + params[:bookstore][:zipcode] address2 = ''q='' + addresscheck url=''http://maps.google.com/maps/geo?'' address =...