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.

Cover all test cases with #permutation

When dealing with system which cooperate with many other subsystems in an asynchronous way, you are presented with a challenge. Due to the nature of such systems, messages may not arrive always in the same order. How do you test that your code will react in the same way in all cases? [more inside]

OO authorization focused on APIs

know_it_all is a new gem for authorization, heavily inspired on Pundit, that makes it easier to display errors through the API. It is also more flexible in the arguments it receives, as it understands that certain actions’ authorizations depend on several factors.

I like your gem – looks like a good solution to a problem we all have to deal w…

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