23 Sep '12, 8am

Rails 4 strong parameters syntax

What will we get in #rails4 ? New attr_accessible in controller. def user_params params.require(:user).permit(:name, :age) end Why so LONG AND VERBOSE? You was afraid to force whitelist_attributes but now OK to force people to write 'require' 'params' 'permit' and 'def user_params' . ??? Although, I like the whole idea. We can go ahead with it but syntax MUST be simplified. Nobody is going to write such verbose constructions. Still not DEFAULT. Again? Well, strong_parameters is not MUST. attr_accessible was reinvented for controller and it's again up to developer write or not those definitions. whitelist_attributes = false again. Syntax. Making it nicer: def UserController # creates user_params strong_params user: %w{name age} # creates admin_params helper strong_params user: %w{name age created_at}, as: :admin end I am truly afraid of rails4 + strong_parameters . I want t...

Full article: http://gistflow.com/posts/373-strong_parameters-is-not-nice

Tweets

Rails 4 in a MindNode

rubyflow.com 21 Sep '12, 3pm

Rails 4 in a MindNode Posted by wyeworks on September 21, 2012 — 0 comments Rails 4 in a MindNode Comments “ ” Post a Comm...

Rails 4 - Transaction isolation level

rubyflow.com 22 Sep '12, 8am

Rails 4 - Transaction isolation level Posted by rahul100885 on September 22, 2012 — 0 comments Just Recently Jon Leighton ...

Nice words, but not good enough, Umno: ― Othman...

blog.limkitsiang.com 22 Sep '12, 3pm

― Othman Wahab The Malaysian Insider Sept 22, 2012 SEPT 22 ― Thank you to The Malaysian Insider for being upfront about th...

New York: Office Receptionist / Ruby on Rails D...

newyork.craigslist.org 23 Sep '12, 3pm

Busy accounting firm seeking an energetic, self-starter to join our administrative team as a receptionist/office assistant...

New York: Office Receptionist / Ruby on Rails D...

newyork.craigslist.org 23 Sep '12, 3pm

Busy accounting firm seeking an energetic, self-starter to join our administrative team as a receptionist/office assistant...

New York: Office Receptionist / Ruby on Rails D...

newyork.craigslist.org 23 Sep '12, 3pm

Busy accounting firm seeking an energetic, self-starter to join our administrative team as a receptionist/office assistant...

What’s New in Edge Rails #39: Week of September...

afreshcup.com 24 Sep '12, 12pm

Week of September 17 - September 23, 2012 Along with changes to the code itself, the Rails Guides have now been converted ...

Ruby on Rails Devise gem: I am trying to use th...

stackoverflow.com 23 Sep '12, 1pm

I am trying to use the devise gem for my rails 3.2 project but when i am trying to check for the sign_in page i am getting...

Nice Kicks Staff Picks

Nice Kicks Staff Picks

nicekicks.com 22 Sep '12, 3pm

In a week filled with a plethora of Jordan Brand sneakers and retroes, there are a few surprising choices in this round of...

wants a SENIOR RUBY ON RAILS DEVELOPER (ROR)

jobs.github.com 24 Sep '12, 3pm

SENIOR RUBY ON RAILS DEVELOPER We are Hiring! Gust is a financial technology company with offices located in the heart of ...

Upcoming Rails 4.0 Release Drops Ruby 1.8 Suppo...

infoq.com 24 Sep '12, 11pm

Rails 3.2, released in January 2012, has received regular updates throughout the year – version 3.2.8 was released just a ...

My specs run 25% faster with ruby patches menti...

progfu.com 22 Sep '12, 7pm

Make your Rails development faster with Ruby-perf and Zeus Nothing is perfect and even a great framework like Ruby on Rail...

Week 4 Ruby/Rails Q&A

thecommongeek.com 17 Sep '12, 4am

Last week, I met a very talented guy who recommended that I checkout a website called www.cleancoders.com So far, I have j...