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.
Creating Rails Active Record Validation Contexts with Inheritance
I wrote a new post on Creating Rails Active Record Validation Contexts with Inheritance. Hope you enjoy!
What's the difference between `irb`, `bundle exec irb`, `bundle console`, and `rails console`?
If you don’t know the difference between the various Ruby and Rails consoles, you’ll have some problems. Maybe you’ll require a file and get the wrong version. Or a library you thought would be avaliable, wasn’t. So how do you make sure you’re using the right console at the right time?
Lets make our life easier while working with VCR cassettes
Do you hate fixtures? I do as well. [more inside]
Speed Up JavaScript Capybara Specs by Blacklisting URLs
Typekit, web.typography.com, and other font services or external APIs can slow down your JavaScript integration tests. Speed up your tests with this setting.
ReadActivity - track read/unread status of your models.
ReadActivity supports model to track read/unread status for a specific time, like ‘Seen by 99’ on Facebook. Please check out my GitHub.
ActiveRecord::SaneSchemaDumper for a cleaner db/schema.rb file
Last week, we released the activerecord_sane_schema_dumper gem (extracted from an initializer we’ve been using for months) in order to generate a clean db/schema.rb file with Rails. It strips useless (and harmful) alignment whitespace from the file so changes to your DB columns doesn’t affect irrelevant lines.
Build a Ruby Gem is 25% off until the end of RubyConf
Build a Ruby Gem is 25% off until the end of RubyConf. Hope you enjoy!
Open-sourcing Aloo
Today I’m Open-sourcing Aloo - my Rails Rumble 2014 submission. Aloo is GIST for data - uses Rails and Redis.
stream-rails, a gem to scalable newsfeeds and activity feeds
I’ve just released a new version of stream-rails. A gem to create activity feeds and newsfeeds with Ruby on Rails. The gem comes with a very basic example app that you can deploy to Heroku.
finite_machine v0.10.0 release
finite_machine gets better with alias_target method and log_transitions option. Please see documentation for full interface.
Rubinius 3.0 - The Language
The last post in the intro series on Rubinius 3.0 talks about some exciting changes to the language.
Shorter, simpler code with Forwardable
I’m an avid user of Forwardable from Ruby’s standard library. My latest article explains why you can make shorter, simpler code with Forwardable and hide the noise of boilerplate Ruby code.
tty-spinner - 0.1.0 release!
I just released tty-spinner for drawing spinning animations in terminal emulators.
Rubinius 3.0 - The Tools
Here Brian introduces the subsystems of Rubinius: GC, JIT, Metric, UI, and CodeDB.
Clojure Loops in Ruby
An article that builds Clojure style loops in Ruby using continuations. Not recommended for pregnant women or individuals with pre-existing heart conditions.
Action Access: Access control system for Rails.
Action Access is an access control system for Rails that provides a modular and easy way to secure applications and handle permissions. It works at controller level focusing on what actions are accessible for the current user instead of messing with models and their attributes. Read more »
Using spring with pow!
The other day I was a bit sad for I was aware that pow (the web server) wasn’t leveraging spring (the Rails preloader) with its fast load times. Read more »
The Scribble gem: A new client facing template language for Ruby
I just launched a new gem named Scribble. [more inside]
5 Tips for Preventing MySQL deadlocks in your Rails application
Check out Hemant Kumar’s post about preventing MySQL deadlocks in Rails…
Persistent queries in Ruby on Rails with PostgreSQL
Sometimes you need to save a SQL query or query parameters for the future use. Here’s a flexible solution allowing you to save & use it every week.
Persistent queries in Ruby on Rails with PostgreSQL.
Sometimes you need to save a SQL query or query parameters for the future use. Here’s a flexible solution that allows you to save it and reuse every week
Maxitest = Minitest + the features you always wanted
Maxitext - Ctrl+c stops tests and prints failures - pastable rerun snippet for failures - multiple before & after blocks - around blocks around { |t| Dir.chdir(…) { t.call } } - red-green output - mtest executable to run by line number and by folder and more goodies :)
themes_on_rails v0.3.0 has been released
Checkout the v0.3.0 changelog of themes_on_rails .