28 Jul '13, 1am

#rails 4: Testing strong parameters #rails4

UPDATE: Thanks to fellow Pivots Alex Kwiatkowski and Rick Reilly, we found that inheriting from ActionController::Parameters didn’t work for update_attribtues . Alex explains some of the changes they made . In the mean time, check out my repo for the example, including a commit for the failing test and the fix. Since Rails 4 has been released we’ve been getting involved and learning about what has changed. One of the changes most discussed is strong parameters and I wanted to explore some ideas about how to test this new feature. Strong parameters are a way of white listing HTTP query parameters and moves the burden of whitelisting from the ActiveModel/ActiveRecord classes and into the controllers. I think this feels like a better place for this to happen. Most examples I’ve seen encourage the following: class UsersController However I think this encourages asking the ques...

Full article: http://pivotallabs.com/rails-4-testing-strong-parameters/

Tweets

For your weekend reading pleasure, testing HTTP...

pivotallabs.com 26 Jul '13, 11pm

Welcome back to our semi-regularly scheduled program. This time around, we are going to take a look at how to write tests ...

Стриминг в Rails 4 #rubyonrails #ruby #переводы #rails4 #streaming #serversideevents #html5

Стриминг в Rails 4 #rubyonrails #ruby #переводы...

habrahabr.ru 27 Jul '13, 12am

:~/testapp$ curl -i http://localhost:3000/messaging HTTP/1.1 200 OK X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=...

A strong field means strong pairings for the @W...

pgatour.com 30 Jul '13, 11pm

Pairings are out for the first two rounds of the World Golf Championships-Bridgestone Invitational , where Tiger Woods is ...

Ruby On Rails State of Practice: Testing

infoq.com 30 Jul '13, 12pm

Rails developers can draw from a huge pool of libraries to build their applications. Dozens of options are available just ...

Stress Testing Your Portfolio

thefinance.sg 27 Jul '13, 8am

Whenever I feel that the stock market is about to go into a bear market, I would run a stress test on my portfolio. The me...

Testing of M9 replacement to start next year

Testing of M9 replacement to start next year

airforcetimes.com 27 Jul '13, 6pm

There is good news for airmen eager to replace the M9 service pistol: Final approval for a replacement program is expected...

Sustainable architecture and a strong community vibe is transforming New Zealand's Christchurch:

Sustainable architecture and a strong community...

cntraveller.com 28 Jul '13, 2pm

Sustainable architecture and a strong community vibe is transforming New Zealand's Christchurch. Here's the best of the ma...

Read how our team migrated Beanstalk to Rails 4...

blog.beanstalkapp.com 22 Jul '13, 6pm

How we migrated Beanstalk to Rails 4 and Ruby 2 Posted on July 22, 2013 by ilya sabanin In October 2011 the groundwork beg...

Frameworks #PHP and #Ruby: #Yii vs. #Rails by G...

gauravchande.com 27 Jul '13, 7pm

Yii vs. Ruby on Rails is something I have been trying to interpret since a long time now. After some failed attempts of as...

My new @CallawayGolf Optiforce driver is really strong. Check out all of my gear at

My new @CallawayGolf Optiforce driver is really...

ernieels.com 31 Jul '13, 10am

The configuration of Ernie's winning set of clubs at the 2012 Open is probably as accurate a barometer as any of how the g...

Community-Driven Research: Ruby On Rails State ...

infoq.com 30 Jul '13, 12pm

InfoQ's research initiative continues with the 16th question about "Ruby On Rails State of Practice: Testing ". This is pa...