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.
Rails Development with Facebook Canvas
The following instructions/solutions will help you to access your http://localhost:3000/ through Facebook: Rails Development with Facebook Canvas.
Gemfile trick for github repositories
If you’re using github repos in you Gemfile, check out this tip : [more inside]
rubygems-bundler integration gem reaches 1.0.0 - No more “bundle exec …”
I just wrote on my blog about the forthcoming release of my gem rubygems-bundler 1.0.0 you can try it now with:
Domain Driven Design for Rails Developers. Part 3: Aggregates.
You start with nicely designed groups of objects. All the objects have clear responsibilities, and all interactions among them are explicit. Then, you have to consider additional requirements, such as transactions, integration with external systems, event generation. Soon you end up with a bunch of interconnected objects without clear boundaries. Maintaining this mess becomes harder and harder. Thankfully, Domain Driven Design provides a good remedy for this situation: Aggregates. Read more
My Giant List of Ruby Questions
This is my workflow (to date) for learning Ruby. Ruby Questions My goal is to have a mastery over both Ruby and the Rails framework. Previously I have felt “OK” with both the Ruby language and Rails framework, but I am not a heavy hitter with either. My workflow has been to read the books listed below creating questions based on what I felt was important material. Much of it I knew but just wanted it documented so I can review the language every few months or so. Much of it comes in and out of memory depending on the current program I am developing. [more inside]
Multiple Ruby Version Support on Heroku
Heroku has long advocated having a strong parity between development and production environments, now you can run the same Ruby version in your production app that you used to develop it. [more inside]
Ruby Under a Microscope
I just published one chapter from my upcoming Ruby internals eBook, called Ruby Under a Microscope - Learning Ruby Internals Through Experiment.
bullet 4.0.0 released (support mongoid)
bullet is designed to help you reduce the number of db queries, I just released gem bullet 4.0.0, it supports mongoid now, I also wrote a post to tell you the details.
RVM, Ubuntu & Cron - a Quick Guide
I just wrote a quick guide to using cron with Ubuntu and rake tasks with RVM. I know it’s something I’ll look at again, so hopefully some others find use for it. [more inside]
I18n alchemy - localization and parsing
Carlos Antonio from Plataformatec has finally released to the public his I18n alchemy gem: an alternative for localization and parsing of I18n data with Active Model.
Why runtime method count is not a good complexity smell
A response to Steve Klabnik’s post on mixins (which I mostly agree with), showing how runtime method count is not a good indicator of complexity, using the standard library Enumerable module as an example
New Release of ITTIA DB SQL Offers More Choice to Embedded/Mobile Software Developers
ITTIA DB SQL version 5.4 provides features such as clustered indexes to reduce the file size for many common table definitions, scrollable SQL cursors for navigating forward and backward in a result set<\a>, a Python scripting API, Unicode SQL query strings, client/server feature enabling multiprocess and remote network access to database files, for any environment with or without operating system.
My ebook on learning how to test with RSpec is now available
A series of posts I did recently on Everyday Rails about how I learned to test Rails applications (using RSpec) gained a bit of traction, so I decided to make an extended ebook version. You can read about the details on Everyday Rails and then head over to the book’s page on Leanpub to pick up the advanced access version for $9 US. Thanks!
New RubyStack with RVM and DevKit support
BitNami RubyStack is a popular all-in-one package for everything that you need to get started with Ruby development in general and Rails in particular. It includes Apache, MySQL, SQLite, ImageMagick, Passenger, etc. [more inside]
Moped a new MongoDB ruby driver
I wrote an article about Moped a new MongoDB ruby driver.
Mixins: A refactoring anti-pattern.
I’ve often seen people say that mixins simplify their code. In my latest blog post, I demonstrate that while mixins may make things more DRY, they don’t make it more simple.
RConfig 0.4.3 Released
I just released RConfig 0.4.3! It’s the most stable version yet! Thanks to Valentin Andries and Leif Gensert for contributing bug fixes! For anyone who haven’t heard of it, check it out! It’s the best ruby app configuration library around, and it works with Rails and non-Rails applications.
Sidekiq 1.2.0 released
Sidekiq is a very fast, efficient background processor. It’s like resque except far more efficient, learn more here. One Sidekiq process can do the same amount of work as 25 Resque processes. In 1.2.0, we’ve added inline testing support and the ability to timeout misbehaving workers.
github_api for access to GitHub API v3
I’ve just released github_api gem for querying GitHub API. To get you quickly started read documentation. I hope you find it useful. You may consider using it to win github challange.
Nezumi, the mobile app for Heroku, now available for Android
Nezumi, which was previously only available for iOS, is now on Google Play.
Extending Rails asset pipeline with custom preprocessors
If you’re using Rails asset pipeline and you wish you didn’t have to add the .erb extension and <%= ... %> blocks to your asset files, check out this article: Extending asset pipeline with custom preprocessors.
Cat Factz, Rails Edition
Finally, the thought of running your own Cat Facts server no longer a dream. Meow.