similar to: DRY principle form validations

Displaying 20 results from an estimated 20000 matches similar to: "DRY principle form validations"

2006 Mar 14
4
Rails Developer Positions in San Diego
We are looking for fulltime Rails Developers to join a tremendous rails only development team in San Diego. Please send resume and examples of work to info@mingle.com. Pay is based upon experience and there is an opportunity for options. Cheers, Mike Mike C. O''Brien CEO Mingle, LLC 701 B Street, Suite 1150 San Diego, CA 92101 mcob@mingle.com 619-922-6970 Cell 619-822-2471 Office
2006 Jul 21
10
why validation on server side
hi, i have noticed that the validations in RoR happen at server side mostly what sites do is using javascript they validate user information there... whats the point of doing it at the server side is it that loading of javascript file in a browser makes a response to client slow and validation at server side offsets that....????? any sugeestions???? is it that i am missing something as
2006 Mar 01
3
Using aspects to apply authentication
Greeting. I was wondering if anyone is using AOP (Aspect Oriented Programming) to ensure login and authentication before allowing someone access to controllers and models. I found two versions of RCR 321 that discuss cut-based AOP, but as far as I can tell there isn''t an implementation of the RCR as an AOP framework. Additionally, I tried to dig up information on Aspect4r and
2006 Mar 15
9
Rails 1.1 is coming!
"Rails 1.1 is coming" - Feb 26, 2006 post in rails-core * http://www.ruby-forum.com/topic/55991 Final Drive Candidates (highlighted for review by core members) * http://dev.rubyonrails.org/report/19 Potential Rails 1.1 Blockers * http://dev.rubyonrails.org/report/10 Did you know you can run many different versions of Rails on the same physical server? This means you can test
2006 Mar 15
4
New RadRails tutorial using AWDWR book
Hello there, I am basically a J2EE refugee fascinated with Rails. I have been using the Spring framework (a lightweight J2EE java framework with some special characteristics) but I am so impressed with RoR that I am porting over many applications. In order to "dive into Rails", of course the second thing to do was get myself an IDE, and since I''ve been using Eclipse for the
2006 Jun 16
2
RJS replaces JavaScript?
Hi All, I am currently devleoping a Rails application and I need to do following as part of client side operations, 1. HTML Form validations 2. AJAX I am currently calling Javascript methods from views of my application; I heard about RJS(Remote Javascripts) templates; are the replacing Javascript altogether? can I use RJS for HTML Form validations and AJAX? What I believe is that with RJS
2007 Oct 05
20
RSpec Book(s) on the radar
I just found this one: http://tinyurl.com/3c3mfa David, are there any other RSpec books in the works? With Regards, Cody Skidmore
2006 Feb 01
3
Parsing RDF coming from a URL
Hello, i''m writing an application that needs geocoding information for locations outside of the US. I''m using the brainoff.com geocoding service mappoint = Net::HTTP.new(''brainoff.com'', 80) response = mappoint.get(''/geocoder/rest/?city=Gent,BE'') logger.debug response.body and the body of the response is in the following form : <rdf:RDF
2007 Aug 17
4
RSpec --format --html:/path/to/file.html
Greetings everyone. I''m learning RSpec and am pretty fresh to Ruby/Rails, but am so excited I can''t help jumping in. I''m running before I can walk here. :-) Yesterday I tried outputting test results to HTML instead of colorized plain text. It looked like there were some entries in the change log for the 1.0.5 release allowing RSpec to do what I wanted. I tried
2007 Aug 18
1
Formatting runner output as HTML
I found documentation on Runner & calling Spec on the command line. I''m able to run it on multiple models or a single one and format the output as HTML now. Previously I used the Rake task expecting it to behave the same way passing --format html:path/to/file.html or setting it somehow in spec.opts. But I''m not quite there yet. Should the Rake task work the same way or is
2008 Jan 15
5
broken URL on rspec.info
Hey folks. I was looking for the mailing list archive up on rspec.info. I clicked on the "community" link and received the URL "http://ey01-s00414/community/". This isn''t correct, obviously. The hint shows it as, "http://rspec.info/community". Where is the mailing list archive? How far back does it go? I''d really like to read back through it
2007 Sep 20
2
FW: FW: Specifying spec and output format inline?
One more try? I just want the script to save the rspec output to an html file when the script is run. In this case, the script will be run from SciTE using F5, rather than by command line. Is there a way to specify this within the ruby script? ________________________________ From: rspec-users-bounces at rubyforge.org [mailto:rspec-users-bounces at rubyforge.org] On Behalf Of Adam Reed
2006 Mar 10
9
Observers?
Hello all! I''m having an issue with Observers, and I''m hoping someone knows the answer. Here is the definition: app/models/vehicle_observer.rb > class VehicleObserver < ActiveRecord::Observer > def after_save(vehicle) > breakpoint > if vehicle.has_new_mil_indication? > UserMailer.deliver_mil_notice(vehicle) > end > end > end
2007 Oct 05
9
I can''t make RSpec 1.0.8 run in Rails 1.2.3
I followed the directions on the site: ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/REL_1_0_8/rspec_on_rails ruby script/generate rspec And apparently everything was ok. But when I do a "rake spec" on the app folder none of the Rails models are visible. Here is the error: (in
2008 May 27
8
new --pattern option
Hello. You''re saying that: To get rspec to behave as it did before this change, use this: --pattern "**/*.rb" I tried like this (rspec 1.03) and it wasn''t same as before (rspec 1.08). Now it also loads all other files in current directory and in all subdirectories and not only from directory and subdirectories given to spec as a parameter. So, for example, I have
2006 Aug 02
4
Struts
I have a STRUTS based webapp and I want to port it to RUBY/RAILS... Can anyone suggest a migration strategy...I would like to migrate my struts actions over time if possible. Jim _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
2006 Mar 18
24
rails is extremely hard to install
I''m on Mac OSX and I''m about to rip my hair out over how hard it is to install rails. I''ve installed rubygems and am typing "ruby setup.rb" in the command line and get "No such file or directory." I''ve never had to use command lines before so this is alien to me. Can''t they just make installation GUI-based for non-geeks like
2006 Jun 20
1
Possible to check if form field is required?
Hi list, is it possible to check if form field will be required when form is submitted (through validates_presence_of or some other validates_* method)? I could do this manually but it doesn''t seems to me very DRY. For example, I would like to be able to dynamically add asterisk with some helper method if city is required here: City*: <%= text_field
2008 Jan 17
6
Webistrano on Windows
Greetings. I just read a note on Webistrano''s website about Webistrano not running on Windows. Does anyone know if there''s a patch to get it running? I''d like to use this tool, but I''m using Windows XP for the time being and need to deploy from there. When I tried running Webistrano for the first time last night it threw an exception when trying to start the
2006 Feb 21
8
Validations continued
I simply can''t figure this out. I have been reading and re-reading Agile book and wiki.rubyonrails.org - all sorts of validation methods and still, it doesn''t work. Controller code def create @client = Client.new(params[:client]) if @client.save! flash[:notice] = ''Client was successfully created.'' redirect_to :action =>