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.
MiniRecord: ActiveRecord without Migrations!!
Sometimes I prefer to use DataMapper because it’s faster and cleaner write “schema” directly inside models, unfortunately my co-workers are too lazy to study a bit DM. So I started to write a small plugin for ActiveRecord 3.1 that replicate this awesome feature. Try MiniRecord!!!.
Code Climate: Quality metrics for Ruby codebases
I just launched Code Climate. It’s a tool that helps Ruby teams reduce technical debt by giving them metrics about their codebase. It’s based upon Open Source static analysis projects like Flog and Flay and hosted so you don’t have to install or run any software and it’s easy to share.
Ruby Loves Sass
I just posted ruby loves sass. make a grid in SCSS and learn how well ruby and sass play together.
Rails core_ext: Array Conversions
I just published Array Conversions in the series Rails core_ext.
Sassy noise - A Sass port of Noisy JS
Sassy noise - A Sass port of Noisy JS (https://github.com/DanielRapp/Noisy) for generating noise background images as base64 data URIs. Based on work of @philippbosch & @aaronrussell.
TestTrack - A Gem To Help You Test Your JS In Rails 3.1
TestTrack is a Rails 3.1 engine gem that adds common JS testing libraries to your asset path and mounts the html test runners at your choice of a route. https://github.com/quickleft/test_track
Zombie Passengers ? Hire a professional!
zombie passenger killer ensures your Rails stay free of zombie passengers :)
Dealing With Embarrassing Breaking Changes
Recently I was contracted to bring a Rails 2.3 app up to Rails 3.1, and by far the largest chunk of time was spent on patching or replacing abandoned 3rd-party dependencies. I get embarrassed for our community when I have only two options to recommend for upgrading code: expensive changes or stay on an old version. Here I tell the story of my embarrassment, and recommend encapsulating those dependencies as a means to keep the upgrade demons away.
Testing Facebook login (and others) with omniauth, Devise and capybara
I just shared the method I used to test a Facebook login feature using Devise and omniauth on our blog. Hopefully should be useful and easy to extend to multiple providers.
Remotipart 1.0 released: dead-simple AJAX file uploads in Rails 3.0 + 3.1
I just released v1.0 of the Remotipart gem. It uses a jquery iframe-transport and some custom middleware and JS, to build upon the standard jquery-ujs built into Rails 3.1 (and available for 3.0). This gem allows your remote forms to upload files, plain and simple. It requires basically no configuration. Feedback welcome :-) View Remotipart 1.0 Released
RailsInstaller 2 for Windows Released
Wayne E Seguin walks through the RailsInstaller 2 for Windows release and key features.
How To: Syncing static assets to S3 during an Engineyard deploy
We just posted a quick and painless to make sure new and updated assets get sent (quickly) to Amazon S3 during a deploy to engine yard using deploy hooks, a rake task, and a custom chef recipe to install the s3cmd tool.
Private Methods: To Test or Not To Test?
Some say that you should only test your public API. I disagree officially in this blog post that shows pros and cons of testing private methods, too. I’d love to hear your opinions!
Foro coches y mas informacion
Entra a nuestra página y visita nuestro Foro de Coches ademas encontraras mucha información adicional.
Html5 boilerplate for Rails 3.1 gem released
I just launched the rails-boilerplate gem (v0.1.0) which simplifies the integration of the html5boilerplate.com templates into your rails apps. I would love to hear your comments/suggestions…
.NET to Ruby: Classes
The second in a series of posts on Switching from .NET to Ruby, which deals with classes in Ruby versus classes in .NET (C#)
Awesome Nested Fields for Rails
In Rails, you can create forms that have fields from nested models. For example, if a person has many phone numbers, you can easily create a form that receives data from the person and from a fixed number of phones. However, when you want to allow the person to insert multiple, indefinite phones, you’re in trouble: it’s much harder than it should be. Well, not anymore. Check the awesome demo or the project code. =)
Resque Mail Queue Gem
I just published the Resque Mail Queue Gem. This gem makes it super easy to send emails asynchronously with Resque.
How Do You Encapsulate Your JavaScript
Wait, what? This is not JavaScriptFlow.com? Oh well. Here is rant on how jQuery missed an opportunity to educate newcomers to JavaScript on what OO JavaScript is all about.
Viiite 0.2.0 has been released!
A new version of Viiite (an alternative to Benchmark) has been released. See how to create benchmark suites on this post.
rails-footnotes-3.7.5.r2 has been released
Cookies & Queries notes was fixed
ruby 1.9.3 for development?
I wrote up a blog benchmarking Rails boot time across a few of our apps in ruby 1.9.2 vs. patched 1.9.2 vs 1.9.3 preview1. Anyone else using one of the various require fixes out there?
Prevent URL hardcode in Javascript
Rails URL helpers are good to fight with URL hardcode, so we have released a tool that brings Rails named routes to javascript: Check js-routes for more information.
Executing a Ruby block in a different context - solution & optimization
I just wrote small blog post regarding a problem I recently faced. My challenge was to execute with a delay a block stored in an ivar but the tricky part is that the block needs to be executed in a different context. I was after a clean solution that would perform well. This is a summary of what I found out and my final solution.