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.
Programminw with Kids using Ruby toolkits
I’ve started to teach my kids to program and have learned that * websites are boring & * games are fun Read more
Stripe vs. ActiveMerchant
I’ve been playing around with stripe for the past month and I have been pretty impressed. It is so easy to use and the documentation is great. That being said there are downsides to stripe compared to ActiveMerchant. Read more
Nathan Kleyn writes about some best prac...
Nathan Kleyn writes about some best practices when cutting gems in Crafting Rubies: Best Practices While Cutting Gems
Serve erb files the wrong way (like php does it)
Here is the full guide. The idea is to configure Apache so you can upload an erb file to anywhere in your DocumentRoot and have it interpreted and then sent to the browser, just like you can do with php files. Basically, you configure Apache to take any request to a .erb file and redirect it to a cgi script.
Setting up Rails credit card processing with Braintree
Here’s a journal of my experiences setting up credit card payments in a Rails app using Braintree and the VCR gem.
Challenge: Content-aware image cropping with ChunkyPNG
This week, Codebrawl’s running a Ruby programming contest challenging you to build a content-aware image cropping tool with ChunkyPNG. Show us what you’ve got!
jClassy: Class system in JavaScript
See jclassy.org for a JavaScript class-system core inspired by the Ruby object model.
The Rotten Pirate: A fully automated movie downloader
The Rotten Pirate pulls new DVD releases from Rotten Tomatoes, filters them, and downloads the highest “scoring” torrents from The Pirate Bay. It even analyzes the torrents comments for video quality! Read more
Monitor methods added to classes/modules with watch_methods
watch_methods lets you watch when methods are defined with regexes, symbols, arrays and more. This is useful when you are creating a gem that is expecting methods to be defined, or to use your macro style methods that mention methods before they are defined (think Rails callbacks, validators etc).
Remotely: API Backed Models.
Remotely lets you create models backed by an API. That way you’re working with real objects that represent the data you receive from an outside source. They can have associations, attributes and behaviors like any other object. It beats passing around hashes everywhere.
rails_best_practices 1.3.0 released
I just launched rails_best_practices 1.3.0, it adds new option –with-git to display git commit and git author in html format and enable RemoveUnusedMethodsInModelsCheck by default, check out the changelogs here.
Getting familiar with Jasmine, Backbone and CoffeeScript in our Rails app
We BDD our way into recreating the Todos.js application by Jérôme Gravel-Niquet with these 3 videos: Read more
Solution to Ruby 1.9.3 segfaulting when using TextMate Ruby Bundle
After upgrading to Ruby 1.9.3-p0 I found that any exception in Ruby resulted in Ruby segfaulting on the TextMate Ruby bundle output screen. I found this gist where people were discussing the error and have some tips inside this RubyFlow post for you to fix the error yourself. [more inside]
FastSpring-Saasy 0.3.1 Gem Released
I’ve recently been working on a Ruby gem for the FastSpring Saasy (Subscription Management) API. Source is available over at Github all feedback welcome and encouraged.
RBzip2 v0.2.0: Now with 100% better compression
Ok, with any compression at all. That said, you can now use the gem to compress and decompress arbitrary data using bzip2. Read more
Yet another Mongoid::Orderable gem.
Hi there! I’ve published new Mongoid::Orderable gem. It uses batch mongoid $inc and proper assigns position while moving between scopes. I hope you’ll like it.
Aspector 0.5.0 is released
I just released Aspector 0.5.0. Aspector means Aspect Oriented Ruby programming. It is a rewrite of my other gem - Aspect4r. Please feel free to take a look at both and let me know your comments or suggestions.
Clean your controller and model with gon+rabl
Introducing gon gem. From the beginning it was just a funny gem which allowed to throw controller variables to js global namespace without data attributes in view. Now integrated with rabl it’s really useful tool making getting JS start data for your application easy.
Announcing RailSide : a native OS X Rails Editor
I am pleased to announce RailSide, a native Ruby on Rails Editor for OS X. Read more
Use git.io in your Ruby code.
Do you want to use the Github url shorten service in your Ruby code? Here you are.
Videos of Matz's keynote and competition pitches
Videos of Matz and Derek Collison’s keynotes, and Silicon Valley contest pitches are now availabale on the following site. Fukuoka Ruby Night Read more
Deploying Rails 3.1 Applications to Engine Yard Cloud
Check out Michael Latta’s post about Deploying Rails 3.1 Apps on Engine Yard Cloud!
Convert Dates Between Ruby And Javascript
Convert Dates Between Ruby And Javascript
rolify 2.0 - Role management library with resource scoping
If you are developing a Rails 3.1 project and look for a Role management library that you could plug with Devise and CanCan, then you should consider rolify. Version 2.0 includes performance improvement, initializer code cleaned up, spec coverage enhancement, opinionated defaults and support for many different rubies (1.8/1.9, REE, Rubinius and JRuby). Currently it works only with for ActiveRecord but there are plans to support Mongoid in a not too near future. Read more
Optimize deploy time compiling your assets locally
Asset pipeline rocks, but compress javascript, specially if you have large files (i.e: a WYSIWYG), can be a pain for your server. We explain in this post how we have solved the problem, by precompiling in local before deploying.