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.
Adding Kyle Neath's KSS to your project as a Rails 3 engine with kss-rails
I just launched kss-rails and hope it allows you to create style guides just that much easier within your Rails applications.
jClassy: Comparison with other libraries
A comparison of JavaScript class system core libraries is available at jclassy.org/doc/co/. As part of it, the JS.Class variant of the Ruby object model is described.
Fake It! (the filesystem, that is)
Just posted on the Highgroove blog about faking the filesystem in unit tests.
GroupedScope: Has Many Associations IN (GROUPS)
https://github.com/metaskills/grouped_scope http://metaskills.net/2008/09/28/jack-has_many-things/ </p> An old ActiveRecord extension that I just updated to work with ActiveRecord 3.1. GroupedScope provides an easy way to group objects and to allow those groups to share association collections via existing has_many relationships. It also maintains existing existing scopes, association extensions and options defined in your original collection association. Some new things in this release: (1) Very minimal extensions in ActiveRecord (2) Uses ActiveRecord::Relation and Arel internally (3) Now uses Arel/SQL for the group scope vs. a ton of member IDs. [more inside]
Which are your favorite Rails commits?
In this article I’ll show you mine: Learning from the masters: some of my favorite Rails commits.
How to set up gedit 3 for ruby and web development
The ubuntu/gnome default editor is pretty slick. This guide shows, how to configure it for development.
RubyConf India 2012 at Pune - CFP is open
The call for proposals for talks at the RubyConf India 2012 is now open! Please go ahead and submit your proposal. The call closes on December 25th.
Video encoding processor for CarrierWave
I just posted short info / description on how to create simple video processor for CarrierWave, that will take your uploaded video file and convert it to mp4 / webm format. To make thins even simplier, it’s using just released ffmpeg wrapper called voyeur.
Janki Method: Learning Rails with 6000 Flashcards and Spaced Repetition Systems
In his book Outliers, Malcolm Gladwell told the world it takes 10,000 hours to master something. Practice three hours a day, and you will shine in ten short years. Problem is that you don’t have 10,000 hours. [more inside]
Ruby on Ales 2012 CFP is open
Hey Rubyists! This is Mark from the Ruby on Ales crew. I want to personally invite anyone that interested in speaking at next years Ruby on Ales conference to submit a proposal here (just click the red button): Ruby on Ales 2012 If you have any questions let me know. You can ask anyone on the team by sending an email to theguys@onales.com
We Love MacRuby!
Do you love iOS development? Do you love Ruby? How can you help get MacRuby on iOS? Visit welovemacruby.com and show Apple your love.
DRYing (controller) specs
rspec-action - 2 lines of code. And how do You DRY your specs?
MacRuby and Objective-C
Here is an article talking about the similarities between Objective-C and Ruby.
Geo-Rails part 3 now available
Geo-Rails part 3: Spatial Data Types with RGeo is the third installment in a series of articles on doing location-based and geospatial programming using Ruby and Rails.
In defense of Rails
In defense of Rails: I just wrote my reply to Adam Hawkins’ - “moving on from rails”
Moving Data from MySQL to PostgreSQL
A quick write up on how I moved my data from MySQL to PostgreSQL. Hopefully it’s useful to someone out there.
ActiveRecord - Simple Key Value Store
ActiveRecord - Simple Key Value Store. A quick and dirty key / value store using a relational database and ActiveRecord.
ActiveRecord STI - How To Prevent The Base Class Being Saved.
When using ActiveRecord and Single Table Inheritance sometimes it may not be desirable to have the base class ever persisted to the database, which by default is able to occur. Read my post on how to alter this behaviour.
$75 to convert PHP SOAP/WSDL script to Ruby
I will give $75 via PayPal to any “one” that can convert this https://gist.github.com/1369510 PHP SOAP/WSDL script to Ruby. Only accepting qualified candidates. Please comment on this post with your email to qualify. Thanks!
Ruby UDP DNS Server in 1 File
After seeing some similar attempts in Python, I decided to create a simple Ruby-based DNS server. It supports A and CNAME records. It’s ripe for refactoring and you could easily attach it to a data store (like, say, Redis) or be used to do various DNS tricks.
Websockets soundboard
Want a dashboard to annoy your colleagues? Run the distributed soundboss soundboard on your server, fire up a browser and let the mayhem start! Not for the easily offended ;)
The 15 minute E-Commerce Site
I created a video showing you how to quickly get ror_ecommerce up and running with a minimal dataset. This will quickly allow you to see ror_ecommerce in action.
Dragbox - Drag and share your code
Dragbox is an easy way to upload and share your ruby code files with people. Simply drag and drop your files into the browser - an instant upload will immidiately make your code accessible and available to others. Try the free beta now: dragbox.org
Voyeur, a rubygem that converts almost any video to HTML5 and other formats.
Introducing Voyeur. Convert almost any video into the common HTML5 formats (webm, ogg, mp4) for playback in modern browsers. Github Source