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.
state_machine 1.0
state_machine 1.0, an FSM library for Ruby and various Ruby ORMs, has been released. Check out a retrospective of the project and join me in celebration!
MacRuby/CoreLocation status bar demo app
Also as part of CHS11, we wrote a barely-working macruby app that runs in the status bar and uses CoreLocation. The code is terrible but it’ll compile, which is something
Padrino and OmniAuth Overview
In this post article we will show you how to mix our Access Control with the beautiful omniauth rack middleware. [more inside]
How to fail fast with Design By Contract
I just wrote a blog post about how I use DBC at work. Has nice little ruby implementation of Design By Contract, with a short explanation of how DBC can be superior to using ‘raise’.
Two Odes to Ruby on Rails
Two complimentary perspectives, one from Tom Mornini and the other from Aston J on why Ruby on Rails rocks.
jekyll-s3: Push your Jekyll Blog to Amazon S3.
Jekyll + Amazon S3 = ♥ with jekyll-s3.
Custom signup with devise providing only email
I just wrote a post about custom signup with devise providing only email and setting the password in the account confirmation step.
Ruby Hoedown V CFP is open!
The CFP for The Ruby Hoedown V (happening on August 26-27, 2011 in Nashville, TN) is now open. Head on over to the website to submit a talk proposal.
Installing Ruby on Rails and DB2 on Ubuntu 11.04
In this tutorial I’ll show you how to create a complete Ruby on Rails setup for DB2 on Ubuntu.
HammerBuilder - fast xhtml5 builder
HammerBuilder is a fast xhtml5 builder written in and for Ruby 1.9.2. Links: Introduction - check out benchmarks on the bottom, Gem, Github.
Parslet and JSON
JSON has nice railroad diagrams detailing its syntax, a Parslet-based JSON parser shouldn’t be too much work. It could even make an introduction to Parslet.
Contributing to Ruby's Documentation
If you’ve ever wondered how to submit patches to Ruby, I just posted Contributing to Ruby’s Documentation to my blog. The existing guidelines were a bit unclear, so I wanted to clarify them for anyone who’s looking to submit documentation before the feature freeze of 1.9.3.
Ruby Mendicant University at RailsConf / BohConf
All of the RbMU staff and several alumni will be at BohConf this year, and we’ve put together a bunch of activities to help get folks involved in our community while having some fun. We’re even running a programming contest where you can try to win a Kindle 3G or at least get a nice code review for your troubles. If you’ll be at BohConf, be sure to catch up with us and say hello.
Tutorial and Example App for OmniAuth and Mongoid
Daniel Kehoe’s detailed tutorial and example code for OmniAuth and Mongoid shows how to build a complete Rails 3 example app with OmniAuth and Mongoid. OmniAuth manages authentication using Twitter, Facebook, or many other service providers. MongoDB is used as a datastore with the Mongoid gem for quick development without schemas or migrations. This tutorial also gives you the option of using jQuery, Haml, RSpec and Cucumber, showing how to integrate each option. In addition to the tutorial, Kehoe provides a Rails application template you can use to generate a fully-functional starter app in minutes. Kehoe’s previous tutorials and example apps have been popular (as can be seen by the number of watchers and forks on GitHub) and include starter apps for “Mongoid and Devise” and “Devise with Subdomains”.
How to not forget about db migrations
before_filter which will remind to run migrations
AssetHat: Load CSS, JS, and images faster in Rails 3
AssetHat 0.4 is now available. It’s a Rails gem that makes CSS, JS, and images load faster—especially useful for mobile websites. Beyond the usual concatenation and minification, AssetHat can rewrite CSS image URLs to use multiple CDN subdomains, and make it as simple as <%= include_js :jquery %> to load popular third-party JS from Google’s CDN. To switch on LABjs, just add :loader => :lab_js. Check out the official website, stats from a bunch of production sites, and the extensive docs for more.
Did You Know That (in Ruby): NameError::message
While whipping up a tiny pure-Ruby implementation of the standard exception hierarchy for Laser, I came across a simply peculiar class: NameError::message.
Programming with an online IDE
Compilr.com online IDE lets you write in Ruby from almost any computer, storing your code online: Compilr.com
Representable gem released: Improve your REST representation code!
The representable gem helps to keep parsing and rendering representations in one place by letting you define mappings in your models (or anywhere else). This post briefly discusses how this works.
Submit a question to RubyRescue.tv and you could win $50!
Last week we (Jeremy and Ryan from Arcturo) ran our first show of RubyRescue.tv, a live question/answer/discussion show for Ruby happening every Tuesday at 2p.m. Eastern. It went awesome, and so this week we’re offering a $50 Amazon Gift Card up for grabs for one lucky question submitter. Head over to the website and submit a question using one of the forms or other methods there. Good luck!
ruby IVR with tropo and padrino
We wrote a little ruby IVR app at Culture Hack Scotland. call it on skype / source on github
Don't like WEBrick? Try net-http-server
net-http-server is a pure-Ruby, small, Rack-like and Rack-compliant HTTP Server, meant to be a simpler alternative to WEBrick. Blog post gives a walk through of just how simple net-http-server is.