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.

  Yesterday

Extending Pundit with dedicated policies

Pundit is a wonderful authorization library and it truly shines through the use of OOP and plain Ruby. However, when used with more than one or two user roles, policy objects can quickly become riddled with complex conditional logic. This article looks at how the basic OO concepts that underly Pundit can be put to good use to create dedicated policies per user role.

Yout HTTPS cert is untrusted The certificate is only valid for the following…
Yout HTTPS cert is untrusted The certificate is only valid for the following…

Opalist Newsletter Has Reached Issue 10

The Opal ecosystem continues to thrive, and projects like react.rb and Volt, opal-irb and Clearwater, are proving that front-end development via Opal has some real perks and some major productivity gains to offer (not to mention just plain Ruby fun!). Opalist keeps you up-to-date on the latest news around the Opal web. Check out Opalist Issue #10 here!

Locally Sourced: Using Tests to Add a Feature to a Rails Application

Noel Rappin has released a new sort-of book, “Locally Sourced: Adding a Feature to a Rails Application”, which describes the entire process of building features into Rails including integration and unit testing, and also covers the difference between traditional and mock tests. Get the issue at https://www.patreon.com/posts/3254253. Support a Patreon campaign for more content at http://www.patreon.com/noelrap.

https://www.patreon.com/posts/3254253 404 …
https://www.patreon.com/posts/3254253 It’s working for me, you’re seeing a …
This line: Get the issue at https://www.patreon.com/posts/3254253. has a…

How to exit a Ruby program

If you want your app to behave well in a unix environment, it’s important that it exit correctly. In this post you’ll learn all about unix exit codes, the mechanism that Ruby uses to exit a program, and how you can add custom behavior on exit. - http://blog.honeybadger.io/how-to-exit-a-ruby-program/

Error establishing a database connection
Stopped working for me as well.
Loading older posts