RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Submit a post

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Introducing Screamshot

Did you know you can use Capybara as the basis for a screenshot service? Find out more in Introducing Screamshot.

LOL, this is awesome, specially the logo! šŸ˜‚
I did this four years ago when I worked at a digital media agency, but I shelle…

Active Params

Stop manually defining strong_parameters in each and every controller. [more inside]

Agree with Ben here. What would be the benefit of defining strong params outsid…
I thought this was actually providing macros in the controller, which would be …
For an alternate take on securing parameters see https://github.com/zendesk/str…
Is this really that big of a problem to begin with? Not in my experience, at le…

Ruby Rescue vs. Try vs. Ternary

All of us have faced this situation when, the current_resource object provided by devise turns out to be nil. All method invocations on current_resource on current_resource will throw an undefined method for nil:NilClass exception. [more inside]

I agree with Kayolav on this. Please don’t type in all caps for titles
@Sam, you really made my day, I’ve never seen such interpretation of my name wi…
Edited @ KALOYAN
Give a try to lonely operator i.e. current_resource&.name Which seems more …
Loading older posts