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.
Quickl 0.2.2 is released!
I just released quickl 0.2.2, a gem for writing command line Ruby utilities.
Rails 3 AJAX File Uploads with Remotipart
I just released a v0.4 of the Remotipart gem, which extends the Rails 3 jQuery-UJS (using the api I built into jquery-ujs a few months back), enabling remote forms with ajax file-upload capability. Here’s the announcement. [more inside]
mongoid-tree -- A clean implementation of trees for Mongoid using the materialized path pattern
I just released v0.6.1 of mongoid-tree. It’s a clean and simple implementation of trees for Mongoid using the materialized path pattern. It has optional modules for ordering and traversing of trees. It also provides useful callbacks as well as several strategies to handle destroying of nodes. The source is available on GitHub, there is an API documentation and it is continuously tested on Travis.
Test Your API with Cucumber and json_spec
Our latest blog post introduces a brand new gem json_spec and how to use it to test your JSON. It’s especially handy for testing the output of your JSON APIs with its built-in Cucumber steps.
3-day Ruby/Rails beginners & 1 day MongoDb course this August in Newcastle
I am running a 3 day rails course and and 1 day Mongodb course . The rails course pricing starts from £310 for early birds while the MongoDB course goes for £120 for early birds.
Are you confused with Ruby's Throw, Catch, Raise, Rescue?
One of the aspects of Ruby that often confuses newbies coming from other languages is the fact that it has both throw and catch and raise and rescue statements. Avdi Grimm explains their usage in simple terms in this new article “Throw, Catch, Raise, Rescue… I’m so confused!”
Introducing YAMLRecord!
At Miso, we occasionally ran into situations where we wanted to persist simple data to a text (or yaml) file. Examples include landing page email forms, contact us forms, feedback forms, about us “team” page, etc. In these situations, we wanted a way to persist data to YAML and easily view the results in a text file but also manage the data through forms and controllers as any other data. To do this we have created a YAML-backed persistence engine called YAMLRecord for those situations so we can access YAML based data using a familiar ActiveRecord API.
First step in scaling a web site: HTTP Caching (how to)
I wrote a tutorial on using HTTP caching and JavaScript to easily increase the throughput of your servers. It should be specially interesting to you if you are hosting on Heroku (Varnish) is setup or if you are using Rack-Cache or planning on doing so.
Summaryse 1.0.0 has been released!
I just launched summaryse 1.0.0 a ruby gem to apply summarizations to arrays. As a side effect, it provides a great way to merge multiple YAML files in a powerful yet simple way.
How to write an awesome Active Record bug report
Your bug is way more likely to be fixed if you help the Rails developers reproduce it.
Rails CRUD Example with Knockout.js
I just launched Rails CRUD Example with Knockout.js. Knockoutjs is a javascript library that allows simple data-bindings and follows the model-view-view model (mvvm) pattern.
RbNav helps you navigate your Ruby project in Vim
I just released RbNav, a lightweight Vim plugin that helps you navigate the classes, modules, and methods in your Ruby project.
LOCat - The Cat's Meow
Just released v0.1.0 of LOCat, a fancy-schmancy LOC analysis tool. I’ve had a very simple script for this in my utility belt for a long time now. I finally got around to taking it out and making it the “Cat’s Meow”. Have fun and please report any issues –this is an 0.x release after all. Here lies the homepage, an example and the source code.
The Rogues discuss their Personal Design Rules
The Ruby Rogues discussed their personal design rules for programming in the latest episode. [more inside]
Github Wacher, get instant Growl notifications!
Github Growl Watcher is a gem which have the aim to help you to watch any project you want and get instant growl notifications for: updates, new watchers, forks and issues. Check it out!
LastModCache: Simple ActiveRecord Caching
I recently released last_mod_cache gem as an option for quickly adding a caching layer to all your ActiveRecord models that include an updated_at timestamp column.
Browse Ruby documentation in Vim with ri.vim
I just launched ri.vim, a Vim plugin that lets you search and browse Ruby library and gem documentation right inside Vim. Features include extensive autocompletion help, quick method lookups, hyperlinked symbols, and better K functionality when you’re in a Ruby file.
Padrino 0.10.0 Released!
The Padrino team just released 0.10.0 which includes major performance improvements (with benchmarks), Rubinius and JRuby Support, enhanced route filters and ordering, along with many compatibility and bug fixes. Read about this release on our blog entry for more details. This release is a serious step towards a 1.0 release as the Padrino API continues to stabilize and mature.
Customize your Ruby with ruby-patches
Want to mess around with an experimental features for Ruby? I’m putting together a GitHub repository for Ruby Patches. There’s a few in there for Ruby 1.9 and JRuby, so far - and submit your own with just a fork+pull request!
Routing to Rack Applications
As the Rails documentation is a bit lacking on this subject, I just posted about how to route to a rack application with a real example: Routing to Rack Applications
Building a Star Rating System with Rails and jQuery
I released a video last week demonstrating how to build a star rating system with Ruby on Rails and jQuery. It’s a simple system that uses the jQuery click() function to highlight stars and send an AJAX request to the Rails server to save the rating.
Slop 2.0, Option parsing made even easier
Your favourite Ruby option parser just hit 2.0! Slop is a lightweight option parser with an easy to use DSL. Slop adheres to the Semantic Versioning scheme, so 2.0 allowed me to alter some of the default configuration options you all wanted saner, this means deprecations and code moving forward. Check out the CHANGELOG and let me know what you think of Slop!
Ruby/Rails training this August in Manchester, UK
Short announcement about an in-person 3-day Ruby and Rails training course Me and Ric Roberts are running in Manchester, UK this summer. It’s in support of the MadLab hack space and is a bargain at £360!