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.
Optimizing Webfont Selection and Synthesis
How many font variants is your site using? Do you need all of them, and could you rely on the browser to generate some on your behalf? A look under the hood of how font selection and synthesis works in the browser.
Neo4j and Rails
I just launched Neo4j and Rails to help guys who are getting trouble with them. I write two parts: * Setup and Deploy to Heroku * Declare Relationship and Write some Queries on Graph Database.
Hakiri Security Watch
I’m excited to announce Security Watch—a security leaderboard of open source Ruby projects on GitHub. [more inside]
A lightweight way to handle different validation situations
Say you have an Article model, and it could be either a draft or a published article. The published article needs more validation than the draft. What’s the best way to write this? Rails has a lightly documented, little-known feature that makes these problems really easy to handle.
From Rails 3.2 to 4.2
Lessons learned from upgrading a small service application from Rails 3.2 to 4.2.
New Ninefold Dashboard to Manage Your Rails Apps
With much excitement, we are happy to announce the new Ninefold dashboard. We’re certain you’ll be delighted. [more inside]
ActiveRecord count vs length vs size and what will happen if you use it the way you shouldn’t
One of the most common and most cumbersome errors you can make: using length instead of count. You can repeat this multiple times, but you will always find someone who’ll use it the way it shouldn’t be used. Here as a reminder: ActiveRecord count vs length vs size and what will happen if you use it the way you shouldn’t
Upmin Admin Interface in Rails Composer
I’ve added the Upmin admin framework to Rails Composer as an option. The upmin-admin engine provides an admin dashboard similar to Active Admin or RailsAdmin, so you can search, view, or update records without writing any code.
factbook gem in Action - Open World Factbook - 267 Country Profiles (incl. Maps n Flags )
Thanks to Eckhard Licher for assembling an open and modular easy-to-(re)use Open World Factbook offering many alternative formats to the one-and-only official CIA World Factbook version in semi-structured HTML pages. [more inside]
Jiragit 0.5.0 released
Jiragit 0.5.0 smooths the integration of JIRA and Git. [more inside]
Green Ruby News #84
One more collection of weekly fresh links in Green Ruby News 84.
Equatable gem new release 0.5.0
I’ve updated equatable gem with fixed type and subtype reference equality as well as improved project documentation with more guidelines and examples. Please give it a go and let me know your thoughts!
Introducing a New Feature Flipping Ruby Gem: Helioth
I just launched a new Feature Flipping gem called Helioth! This is not the first gem on this topic but I took a new approach and would love your feedbacks..
Configuring Macbook for ruby/rails development with automated scripts
My instructions on how to configure Macbook Pro on Mavericks to work with ruby and rails with the help of automated scripts (ruby, bash).
I just updated ov gem, now possible use ...
I just updated ov gem, now possible use earliest defined methods with types
queue_classic 3 was recently released!
I recently released the latest major version of queue_classic which includes work from different people. Highlights on what’s new are in a blog post I wrote.
How to setup free stage for your open source project
Teatro is now more friendly for open source maintainers since it does not asks for repo access anymore for public repos. More info here http://blog.teatro.io/how-to-setup-free-stage-for-your-open-source-project/ [more inside]
Chef Basics for Rails Developers
Heard of Chef but never tried it? We wrote a step by step tutorial on how to the steps to set up a deployment process with Chef for your Rails project. Check it out! [more inside]
Ruby & Rails: Making sure rake task won’t slow the site down
If you don’t have multiple cores and/or you have a small VPN, you may end up with a huge slow down of your web app, when rake tasks are executed. This can be a big issue especially when you use something like whenever to perform periodic tasks. Luckily there’s a nice. You can read more about how to use it here: Ruby & Rails: Making sure rake task won’t slow the site down
Write Reliable, Asynchronous Integration Tests With Capybara
Integration tests involving Ruby and JavaScript are fraught with danger. Developers frequently complain of tests which fail erratically. It is possible to write reliable, asynchronous integration tests with Capybara by understanding how Capybara, Ruby, background processes, threads, processes and Capybara drivers such as Selenium, Capybara Webkit, and Poltergeist work, and by following some easy-to-remember guidelines.
Gathering Additional Profile Attributes Using Devise
The fantastic Devise authentication gem asks registering users for just two items: an e-mail address and password. Chances are you’ll want to subsequently gather additional details, such as the user’s name or location, typically done through an account profile management form. In this post I show you how this is accomplished.
Floating Point and currency
Why using floating point may be a bad idea when it comes to currency handling and what are the alternatives.
Guide to upgrade to Rails 4.1.5
Are you planning to finally bump your app to the Rails 4.1? Then check out my blog post about that. Now with tips about rails 4.1.5!
Ruby String Magic
If you want to master Ruby, you should know strings very well. Follow @RubyStrings to learn about all the details!