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
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Find next / previous ActiveRecord records out of the scope in one query
ActiveRecord extension to find out near by (proximal) records (previous and next) from the ActiveRelation scopes (tried to use AREL as much as possible). [more inside]
Setup Rails on Ubuntu 14.04
Ubuntu 14.04 just launched and I released a new GoRails tutorial to cover installing Ruby 2.1.1 and Rails 4.0.4 on it. [more inside]
Getting started with QueueClassic
We wrote a little something to help you getting started with QueueClassic. What is QueueClassic you might ask? It is a “simple, efficient worker queue for Ruby & PostgreSQL.” [more inside]
Fragment caching with Rails
I just published a post about caching with Rails: Rails caching.
Fastly CDN releases rails plugin and more!
Fastly launches the fastly-rails plugin for easy dynamic edge-caching, an open beta EngineYard add-on, and updates on the CDN Sumo Heroku add-on. Full post here.
How to DRY Rails routes
Some large Rails app have many resources in their config/routes.rb, some are repeated and could be DRY up. In following tutorial How to DRY Rails routes, the author walk you through how to achieve that with both Rails 3 and Rails 4.
Searchlight - the low-magic search gem
Users of MetaSearch/Ransack, have you seen Searchlight? It’s a low-magic search gem that’s powerful and easy to understand. It helps you map form options to methods you write, and inside those methods, you can do whatever you need, from where(name: name) to complex SQL queries. [more inside]
Pundit - MetaCasts.tv*
In this episode we’ll learn how to use the Pundit gem to lock down access to objects in an API. Using TDD to drive the development of Pundit policies and scopes we’ll understand the basics of using this authorization library. [more inside]
Accessing Models With Confidence In Cucumber Specs With Factory_girl
Now we can access models in the same way in every step definition, having confidence that it will never be nil More…
How to create calculator in Shoes.
I wrote a guide about how to create calculator in Shoes
Reversible migrations with Active Record
We wrote this blog post to explain reversible migrations with Active Record.
Announcing Invoicing release - 1.0.0
Invoicing is one step solution for all the invoicing needs of your application. Checkout release post for more information.
How to refactor a long, messy, badly tested controller
At some point in your Rails career, you’ll run into a controller that’ll make you want to give up programming forever. As great as it would be to just close your eyes and pretend it doesn’t exist, someday you’ll have to fix a bug in one of these controllers. And, being a good software developer, you want to leave the code better than you found it. But how do you refactor it, especially if you don’t have good tests to rely on?
Several approaches to responsive CSS and how Sass helps with it.
A nice read (hopefully!)about several approaches to responsive CSS and how Sass helps with it by RoR dev.
My favourite things about Rails 4.1
When Rails 4.1 was released Lucas Mazza from plataformatec blogged about 3 favourite features in Rails 4.1. I liked the idea, but some of my favourite things are different. So, here are my favourite things about Rails 4.1
Invoker version 1.1.0 released
We just released Invoker version - 1.1.0 now with support for: [more inside]
The keyword arguments falacy
Check out the pros and cons of keyword arguments in ruby: The keyword arguments falacy in GB’s new blog post.
Bootstrap 3 support for Simple Form
Simple Form is the most popular form builder gem in the Rails community. One of the things that our users love the the most is its integration with Bootstrap. [more inside]
How to get a debian package out of your Rails app, and host it on S3
Software packaging is a kind of a dark art for many people, due in most part to packaging manuals and policies that are hard to understand for the busy developer. Here is how to package a Ruby on Rails app, and host the resulting debian package on S3, all without the need to know about any of the debian packaging rules.
Ruby Best Practices
I just was reading this post on Ruby Best Practices Ruby Best Practices that is written by Gregory Brown developer from Xaavo Don’t miss this awesome article.
Ruby - the good parts
Kamil Bielawski from our team at AmberBit posted a blog post about what he think are good parts of Ruby language. Do not miss it!
Episode 19 - Dates with MHPrettyDate, NSCalendar, and NSDateComponents
Dates are an important part of a lot of applications, and how you display them for their context can make a difference to how quickly users parse the information on screen. In this episode I walk you through getting the MHPrettyDate cocoapod set up in the Tasker application, and show you how to use NSCalendar and NSDateComponents to work with dates properly. [more inside]
V is for Vibe
This week @tobyhede has mostly been thinking about the front-end and frankly, how everything is terrible (tm): http://multifaceted.io/2014/v-is-for-vibe/