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.
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. [more inside]
A Casual Stroll Through Discourse's Source Code
Discourse is a new, open source discussion platform built on Rails and Ember.js. [more inside]
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! [more inside]
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! [more inside]
Avoiding SQL Injection in Rails
I promise this is not related to or prompted by the Rails CVEs today - just coincidental timing. [more inside]
Ruby on Rails vulnerable to mass assignment and SQL injection
Last week I notified the Ruby on Rails security team about a huge vulnerability that I spotted in the latest stable release of Rails and its related gems. As a result the Rails core team published a security advisory today, urging users to upgrade the json gem to the latest stable release. [more inside]
Heatmap generator for Ruby
This gem allows you to generate Heatmaps in Ruby, as easy as 1, 2, 3… read more
I've developed a simple online tool to monitor server/ports, please I need feedback
I have developed an online tool to check if a server or service is up and running (ping, url, custom port). Its simple to use and free, please give it a try: [more inside]
Getting To Know RubyMotion With Laurent Sansonetti
Not familiar with RubyMotion yet? Or want to learn more? Take a few minutes to read part 1 of my interview with Laurent Sansonetti. [more inside]
integrate Emacs with rbenv - announcing rbenv.el
Ruby developers using Emacs and rbenv should take a look at rbenv.el. It let’s you configure your Emacs session with the rbenv ruby of your choice.
Creating immutable tree data structures in Ruby
What are the advantages of immutable data structures outside functional programming? We explore the benefits of immutability when designing a search query API in Ruby. Continue reading…
Clipboard Helpers for IRB
A simple .irbrc addition to access Mac OS X’s pbcopy & pbpaste commands from IRB.
A proposal for better mocks
After reading “Growing Object-Oriented Software Guided by Tests” (GOOS), I finally stopped worrying and learned to love the “mockist” or “London School” of TDD. However, the unfortunate fact of this style in Ruby is that tests using mocks can easily find themselves out of sync with the concrete implementations instructed into existence by those mocks, especially when making adjustments to the design of the system. [more inside]
ActiveRecord Join Models Hash Themselves into Bad Performance
ActiveRecord’s hash method is broken for id-less (join) models, causing massive performance issues when dealing with non-trivial datasets. Here’s how we fixed it.
The Asset Pipeline Isn't Actually Slow. ...
The Asset Pipeline Isn’t Actually Slow. rake assets:precompile shouldn’t take forever, and can be patched now without any special gems.
State Machine with Rails. Basics
State Machine comes to the rescue when models in your application need statuses and events. There is a state_machine gem for ruby. I recommend you to spend some time studying basics before you start using it with rails. Here is a nice tutorial
Credit card type gem
I just launched credit card type field and yada yada.
Blind Refactoring, Guided by Tests
Can you write good code if you don’t understand what you’re doing? I was recently surprised to discover that sometimes, with a good test suite, you can.
Hexagonal Architecture for Rails Developers
Recently, the topic of building loosely coupled systems with Rails has gotten a lot of attention. More and more people are experimenting with different approaches trying to make their Rails applications more maintainable. The hexagonal architecture is one such approach. And in this article I am going to show how it can be used with Rails. Read more…
How to handle naming conflicts on a polymorphic has_many
Naming conflicts on a polymorphic has_many is an issue we came across in a recent rails application. Read how to handle this issue and avoid it.
Open Source in your Inbox: Code Triage
“I don’t have time to contribute to open source”. But who does? We’re too busy shipping products and open source is so daunting and time consuming. Sure tools and technologies are our livelihood, but there’s just so much there. Even if you’ve got the time - where do you start? continue reading….
RubyMine 5 is Out: RubyMotion, Ruby 2.0, CoffeeScript debugging
JetBrains releases RubyMine 5, its intelligent Ruby and Rails IDE, bringing the full stack of development tools for more types of Ruby applications, with smart code assistance, testing and debugging features now available for RubyMotion, cutting-edge Ruby 2.0, JRuby, Web applications and many others.
Hopla: a Rake-based front-end dev suite
Hopla is a dev suite built in a single Rakefile and a few methods which gives you full access to Sprockets, Compass, and any template format supported by Tilt.