10 Oct '12, 1pm

ActiveModel modules for all your non-persisted form data via Thoughtbot. Solid technique to avoid bloating AR models.

October 10, 2012 Tagged: rails activemodel validations Comments (View) ActiveModel modules for all your non-persisted form data Submitting form data is a common feature of web applications — allowing users to submit their information and giving them feedback whether the information is valid or not. ActiveRecord comes with a powerful set of validators for attributes on a persisted data model. When data is not persisted, or used for other non-active record purposes, Active Model Helper Modules reduce the complexity of validations on your plain old Ruby objects. This example illustrates a web form with non-persisted data Keep business logic out of the Controller and Views Add validation support using ActiveModel includes Display data validation errors in the form Use ActiveModel naming conventions for generating form endpoints Routing Create the routes needed for displaying a...

Full article: http://robots.thoughtbot.com/post/33296680513/activemodel...

Tweets

Skora Form Review

Skora Form Review

Despite the width issue, I was still interested in testing the shoe on technical trails. The lack of a rock plate, no lugs...

Making Big Data Smart: A 360-Degree Online View of a Business

Making Big Data Smart: A 360-Degree Online View...

searchenginewatch.com 10 Oct '12, 5am

It’s no secret that companies can use the wealth of data that they generate in the course of doing business to gain valuab...

LCD-MF271CGBR, I-O Data new WQHD IPS monitor

LCD-MF271CGBR, I-O Data new WQHD IPS monitor

en.akihabaranews.com 10 Oct '12, 10am

I-O Data outs this morning in Japan a new monitor with the LCD-MF271CGBR. This new 27″ LED Backlight Monitor main feature ...

Commerce Slams Chinese Cell & Modules with Final Duties: The U.S. Commerce Department today returned a hawkish

Commerce Slams Chinese Cell & Modules with Fina...

renewableenergyworld.com 11 Oct '12, 12am

Rhone Resch, president and CEO of the Solar Energy Industries Association (SEIA), commented that, “While today’s decision ...