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.
Setting ActiveRecord's connection pool size on Heroku with Puma and Sidekiq
How does one change the connection pool size in Rails when hosting on Heroku? Watsi’s post on setting AR’s connection pool size uses the latest and greatest from both Puma and Sidekiq to achieve this.
Representable 1.3.3 Released With User Options Support!
Representable 1.3.3 got :setter and :getter to define accessors inline and process user options from outside! Heads-up here.
Call for papers is open!
Barcelona Ruby Conference call for papers is now open! You have time until March the 10th to submit your proposal - don’t miss the chance.
Time based OTP token for Google Authenticator in Ruby
I just wrote a blog post on creating time based otp token for Google Authenticator in Ruby Let me know what you think.
Custom pre-commit hooks with pre-commit gem
pre-commit comes with checks like missing-migrations/merge-conflicts/whitespace/jshint/… and now can also run project-specific checks via config/pre-commit.rb
I used RubyMine 5.0 for a week, here's what I thought
I’m a Vim user. Just give me an editor and get out of my way. But there’s always been something nagging me, it feels like I’m living in the past. So I decided to take the plunge and used RubyMine 5.0 for a week.
Search Amazon in Ruby
After having a difficult time finding an easy-to-use gem for searching Amazon products, I ended up writing my own gem from scratch. It provides a simple Ruby DSL for searching, looking up products, and retrieving “browse nodes” (i.e.: categories). You can find the gem named a2z on Github.
FFI: Foreign Function Interfaces for Fun & Industry
An FFI wrapper is much easier to write and maintain than a C extension, more portable across platforms and languages, and easier for users to install. Here’s when and how to use one.
Yet another Ruby shootout (round 2)
Yet another Ruby shootout (round 2): Read more
What you did not know about Capistrano, yet
Capistrano is probably the oldest but still the most popular Rails deployment tool around. While there is some documentation around, I often end up browsing through the source code. Almost every time I discover things I did not know before. Today, I published a blog post about some great Capistrano features you probably did not know, yet.
Railsview: Ruby on Rails Theme Marketplace
I just launched RailsView a ruby on rails theme marketplace. Railsview has its own gem: You can buy or download themes and add a vest to your app in a few seconds with our gem “xkimo”. You don’t have to worry about converting your path: Railsview sells themes for Rails App. (with the right routes, and right path to your assets pipeline) Full HTML/JS/CSS themes and CSS based themes: With Railsview you can also build CSS based themes. All the Css based theme will be FREE. It’s FREE: It’s completely FREE to join and Railsview is taking 0% cut on our sellers sales until the end of our BETA. Sellers will keep 100% of each sales!
Everyday Rails Testing with RSpec now covers Capybara 2.0 and more
I just released a major update to Everyday Rails Testing with RSpec, my intro book on testing heretofore untested Rails applications. Of note, the update now covers the Capybara 2.0 DSL and RSpec’s preferred expect() syntax. I also rewrote the chapters on model specs and factories. Read more
Haml 4.0 released
Haml 4.0 has been released. The new version includes SCSS, Less and Coffeescript filters; better HTML5 support; hyphenated data attributes; security, performance, and thread-safety fixes; and more.
Github Contributors - gem to update static files with contributor list.
I just released Github Contributors gem for easy updating static files with list of Github project contributors list. Read more
Ruby Thread#kill and ensure blocks
It turns out ensure blocks are executed inside a Thread even after the Thread is killed. I write about it and show an example here.
Using SSL in your local Rails environment
New post in my blog: Using SSL in your local Rails environment.
Rails Assistant on the Mac App Store
I just launched Rails Assistant on the Mac App Store. It’s a developer tool for Ruby on Rails.
Copying server data from the command-line, safely
I released a command-line tool for One-Time Secret today which is handy for copying sensitive data to and from your servers.
$ gem install onetime
Code Reuse in Ruby -- It's complicated
This 13 page PDF summarizes what I’ve learned about the differences between behavior sharing and implementation sharing techniques (i.e. composition vs. inhertance). Hope it’s useful to you!
Ruby 2.0.0-rc2 - MetaCast
Ruby 2.0 introduces some new features and changes that could impact Ruby developers daily. In this episode* we’ll explore topics such as Module Prepend, Keyword Arguments, Enumerable#lazy, amongst others. With Ruby 2.0 around the corner Ruby developers should be aware of these new changes and how they’ll impact your code. Read more
A Casual Stroll Through Discourse's Source Code
Discourse is a new, open source discussion platform built on Rails and Ember.js. Read more
Private Job board for Rails Freelancers/Developers
Railyo is a Newly Launched private job board, dedicated for Rails Freelancers/Developers! So if you’re a rails developer - then you might want to signup for some cool projects, startups may find a great developer there! Read more
Mousetrap-rails v0.0.9 is out
I’ve just released new version of mousetrap-rails gem. Mousetrap-rails integrates Mousetrap javascript library with Rails Asset Pipeline so you can simple add hotkeys to your rails application.
bundler-audit: patch-level verification for Bundler
bundler-audit provides patch-level verification for Bundler. It will check the gem versions in Gemfile.lock against a local database of advisories. Check whether your Rails apps are updated against the recent Rails vulnerabilities! Read more
Avoiding SQL Injection in Rails
I promise this is not related to or prompted by the Rails CVEs today - just coincidental timing. Read more