01 May '13, 6pm

strong_parameters are good and you should feel good.

May 1, 2013 calebjthompson strong_parameters ruby rails strong_parameters are good and you should feel good Besides moving attribute whitelisting to the controller rather than the model, Rails 4’s move to Strong Parameters over attr_accessible provides great documentation about the data with which records are being created. Here is an example of a controller many of us have written, using strong_parameters : class CommentsController < ApplicationController respond_to :html def create @comment = Comment.create!(comment_params) respond_with @comment end private def comment_params params. require(:comment). permit(:body). merge(user: current_user, commentable: commentable) end def commentable # find and return a commentable record end end Notice how the comment_params method tells you at a glance what object’s parameters this controller/action cares about (comment ), the spec...

Full article: http://robots.thoughtbot.com/post/49374573556/strong-para...

Tweets

Good call from @AceofSpadesHQ - first it was to...

ace.mu.nu 01 May '13, 6pm

Apparently there was a sweet spot in there, perhaps lasting several minutes to an hour, when it was neither too early to a...

Big fan of strong_parameters. But recommended u...

edgeguides.rubyonrails.org 02 May '13, 7am

class ClientsController < ApplicationController # This action uses query string parameters because it gets run # by an HTT...

i-am-bored: 20 More Photos Of Good, Bad And Ugly Tattoos [Pic] (Weird): If some of these don't make you feel b...

i-am-bored: 20 More Photos Of Good, Bad And Ugl...

i-am-bored.com 01 May '13, 12pm

20 More Photos Of Good, Bad And Ugly Tattoos [Pic]. If some of these don`t make you feel better about your life choices......

Bought By Good Sam

thedomains.com 30 Apr '13, 2pm

“Launching in August 2013, the new RV.com will be content rich and feature tools and services that the Good Sam Club membe...

Bought By Good Sam via @TheDomains

thedomains.com 30 Apr '13, 1pm

“Launching in August 2013, the new RV.com will be content rich and feature tools and services that the Good Sam Club membe...

feel free to buy this for ma birthday safe safe

footlocker.eu 05 May '13, 6pm

਍ℼ佄呃偙⁅瑨汭倠䉕䥌⁃ⴢ⼯㍗⽃䐯䑔堠呈䱍ㄠ〮吠慲獮瑩潩慮⽬䔯≎∠瑨灴⼺眯睷眮⸳牯⽧剔砯瑨汭⼱呄⽄桸浴ㅬ琭慲獮瑩潩慮⹬瑤≤ാ㰊瑨汭砠汭獮∽瑨灴⼺眯睷眮⸳牯⽧㤱㤹砯瑨汭㸢਍格慥⁤摩∽瑣ぬ弰效摡∱㰾楴汴㹥਍三歩⁥潊摲湡删瑥潲㔠簠眠睷昮潯汴捯敫⹲略਍...

Goedzak ("good bag") designs a new approach to reuse

Goedzak ("good bag") designs a new approach to ...

treehugger.com 30 Apr '13, 8am

In dutch, goedzak actually translates to "good guy" or "kind soul", but it makes a punny play on the words goed zak for "g...

It's going crazy now in the office! Well, it's ...

nationalmuseum.sg 07 May '13, 7am

This page uses JavaScript and requires a JavaScript enabled browser.Your browser is not JavaScript enabled.

The Good, the Bad & the Ugly

The Good, the Bad & the Ugly

nicekicks.com 28 Apr '13, 6pm

Welcome to another edition of The Good, the Bad, & the Ugly . This week, we cover many spectrums of the sneaker culture. C...

Baristing: How to Be a Good Barista Minor gramm...

baristing.blogspot.com 27 Apr '13, 2am

I can say, without undue hubris, that I'm good at my job. We can quibble endlessly about what that might mean, discuss how...

Livestream CEO: Good Domain is the Best Marketi...

dotsauce.com 02 May '13, 2pm

“(domains) remain key to your email identity, and fundamental to your marketing and even capital-raising.” “your domain na...

Official: GM signs Ceres declaration, says 'res...

green.autoblog.com 02 May '13, 8pm

DETROIT – General Motors is the first automaker among 40 major U.S. companies to sign a "Climate Declaration," collectivel...

Good morning! @GAC_music will be performing in ...

youtube.com 04 May '13, 12am

YouTube FanFest powered by HP will be held in May 21st 2013, The Ritz Carlton, Millenia Singapore Where: Grand Ballroom, R...

Achieve maximum minimalism with pure Kurt Geiger London 'Good Sport' #NearlyNude

Achieve maximum minimalism with pure Kurt Geige...

kurtgeiger.com 30 Apr '13, 1pm

Kurt Geiger London introduces our key sports flat sandal for the summer, Good Sport`s white rubber track sole and simple s...