22 Mar '12, 12pm

Strong parameters:

We're exploring a new way to deal with mass-assignment protection in Rails. Or actually, it's not really a new way, it's more of an extraction of established practice with some vinegar mixed in for when you forget. This new approach is going to be a part of Rails 4.0 by default, but we'd like your help in testing and forming it well in advance of that release. Strong parameters This new approach is an extraction of the slice pattern and we're calling the plugin for it strong_parameters (already available as a gem as well). The basic idea is to move mass-assignment protection out of the model and into the controller where it belongs. The whole point of the controller is to control the flow between user and application, including authentication, authorization, and as part of that access control. We should never have put mass-assignment protection into the model, and many peo...

Full article: http://weblog.rubyonrails.org/2012/3/21/strong-parameters/

Tweets

Toyota boosting Prius c production to meet stro...

paultan.org 21 Mar '12, 5am

I agree with Kampung fella, I used to work with a rare earth company. Producing magnet for various use, we were producing ...

UMC-affiliated IC design firms to post strong s...

digitimes.com 19 Mar '12, 5am

UMC-affiliated IC design firms to post strong sales growth in 2Q12 Cage Chao, Taipei; Jessie Shen, DIGITIMES [Monday 19 Ma...

Pictures: Strong, long 7.4 earthquake hits Mexico, collapsing at least 60 homes near the epicentre

Pictures: Strong, long 7.4 earthquake hits Mexi...

straitstimes.com 20 Mar '12, 11pm

One of the strongest to shake Mexico since the deadly 1985 earthquake that killed thousands in Mexico City, Tuesday's eart...

PC shipments expected to have strong 2H12, says...

digitimes.com 20 Mar '12, 9am

Looking ahead, the PC market will still enjoy pockets of growth, particularly in emerging markets. IDC expects 2012 PC gro...

Notes: Strong field heads to Mississippi this w...

pgatour.com 19 Mar '12, 4pm

Starr Campbell was named the Champions Tour Volunteer of the Tournament for her loyal service to the Mississippi Gulf Reso...

AUS - A strong showing from Alonso limits the d...

ferrari.com 18 Mar '12, 11am

Scuderia Ferrari leaves Melbourne with ten points to its name, thanks to a fifth place for Fernando Alonso. However, Felip...

#Green In its first three days on the market, i...

green-energy-news.com 18 Mar '12, 9pm

March 18, 2012 – Vol.17 No.1 Prius c Launch Kicks Off With Strong Sales: More than 1200 Sold in First Three Days. Toyota's...

A Lesson Learned: Finish your round strong

A Lesson Learned: Finish your round strong

pga.com 19 Mar '12, 3am

Just when you thought that the PGA Tour couldn't get more exciting...eight players who were tied for the lead at some poin...

VIDEO: Model S and Model X Live at Santana Row.

teslamotors.com 22 Mar '12, 5pm

Last weekend Tesla brought Model X to Santana Row for the first time, giving hundreds of visitors an opportunity to see Te...

The basics of testing op amps.

tmworld.com 25 Mar '12, 4pm

is a senior test engineer with TI's precision op amps group where he is responsible for developing and implementing test a...