26 Sep '13, 11am

server side #rails validations

Database constraints and/or stored procedures make the validation mechanisms database-dependent and can make testing and maintenance more difficult. However, if your database is used by other applications, it may be a good idea to use some constraints at the database level. Additionally, database-level validations can safely handle some things (such as uniqueness in heavily-used tables) that can be difficult to implement otherwise. Client-side validations can be useful, but are generally unreliable if used alone. If they are implemented using JavaScript, they may be bypassed if JavaScript is turned off in the user’s browser. However, if combined with other techniques, client-side validation can be a convenient way to provide users with immediate feedback as they use your site. Controller-level validations can be tempting to use, but often become unwieldy and difficult to t...

Full article: http://guides.rubyonrails.org/v3.2.13/active_record_valid...

Tweets

ほんとだ、ちゃんと reset_column_information について書いてあった >...

guides.rubyonrails.org 26 Sep '13, 9am

You can think of each migration as being a new 'version' of the database. A schema starts off with nothing in it, and each...

How did I not know about the content_for and di...

api.rubyonrails.org 26 Sep '13, 12pm

You can also pass an array of objects which this method will loop through and yield the current object to the supplied blo...

@dngoo Hmm. You could use a custom constraint o...

guides.rubyonrails.org 26 Sep '13, 3am

Active Record Basics Rails Database Migrations Active Record Validations Active Record Callbacks Active Record Association...

@clemensk yep, race conditions can happen becau...

api.rubyonrails.org 01 Oct '13, 2pm

Using this validation method in conjunction with ActiveRecord::Validations#save does not guarantee the absence of duplicat...

blogged at

missypixie.blogspot.com 29 Sep '13, 5am

LA's pretty much a touristy place if you ask me. if you're not keen on doing studio tours or visiting theme parks then i g...

@kerrizor I don't think there's anything in min...

api.rubyonrails.org 29 Sep '13, 6pm

Test numeric difference between the return value of an expression as a result of what is evaluated in the yielded block. a...

#Ruby on #Rails: Deploy

rubyonrails.org 05 Oct '13, 12am

The easiest deployment setup for Rails is Phusion Passenger aka mod_rails. It's a module for nginx and Apache that automat...

Fast tests in Ruby on Rails

rubyflow.com 01 Oct '13, 3pm

Fast tests in Ruby on Rails Posted by manualwise on October 01, 2013 — 0 comments Developers need to be able to run tests ...

Seeing Things from the Other Side [@grroes talk...

irunfar.com 25 Sep '13, 4pm

Through pacing and crewing, I was able to see what it’s like for other people to run hundred milers, not just what it was ...

懐かしい - Riding Rails: Merb gets merged into Rail...

weblog.rubyonrails.org 20 Sep '13, 6am

Merb gets merged into Rails 3! Posted by David , December 23, 2008 @ 11:47 am It’s christmas, baby, and do we have a prese...

Slides from my @rockymtnruby architecture talk:...

pivotallabs.com 26 Sep '13, 8pm

If you are trying to test controllers under a Rails engine, you might come across this error: Failure/Error: get :index Ac...