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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
validates_type is a gem for validating that a specific value is exactly the type it is expected to be. In a recent update, the
validates_type gem has been extended to validate against any defined type in a system. With this update, the uses of this gem greatly increased. They increased so much that it is possible more than 2 people will use it, and that would be pretty awesome.
In this post we’ll use a little-known command line flag to spy on Ruby as it parses our code. - http://blog.honeybadger.io/watch-ruby-as-it-parses-your-code/
Split your app based on business logic bricks and assemble them http://slides.com/apneadiving/code-ruby-like-you-build-legos
A tutorial outlining how to integrate Rails with SPF.js, A lightweight JS framework for fast navigation and page updates from YouTube. [more inside]
When it’s time to choose an editor for Ruby on Rails, you will find a variety of good options. From the most austere to a true beast. I have been trying out the most known editors and wrote some notes that I want to share. http://davidmles.com/blog/editor-ruby-rails/
The gem can be found here:
It’s inspired by trailblazer, but sticks more to how rails is laid out.
To use the default functionality, for each of your actions, you can just
render json: model
or however you want to render the response.
model is a memoized method
that looks up an operation and policy and applies whatever custom logic you want to implement.
Checkout the readme for details.
The addition of Active Job to Rails gave developers a single, unified interface for a number of popular background processing frameworks including Sidekiq, Resque, and Delayed Job. In this post, we’ll look at a step-by-step process for testing your workers from top to bottom using Active Job and Minitest.