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.
Showing Passenger Stats From Inside Your App
How to show how many active or idle Passenger processes your server has and display them inside your app
Selenium in headless with Xvbf and Ruby
The article describes how to set selenium under headless state with Xvbf and Ruby.
MiniBacktrace - For MiniTest & Rails
MiniBacktrace allows you to take advantage of the Rails.backtrace_cleaner when using MiniTest. This includes everyone using Rails 3 with Ruby 1.9. Just add ‘mini_backtrace’ to your Gemfile’s :test group and your should automatically see a huge difference. Any additions to the Rails.backtrace_cleaner should now work.
Object-oriented CSS Heuristics for Programmers
Creating coherent and cohesive CSS is hard. What starts out as elegant often ends up crufty, with a mixing of conventions, loads of duplication and unused styles as the app grows. [more inside]
A quick look at the annotate gem - Annot...
A quick look at the annotate gem - Annotate Your Models With The Annotate Gem. A great way to give yourself visibility of the properties on your model without having to refer to the schema.rb or object attributes.
MacRuby for the Desktop
Why you should start hacking on MacRuby for desktop applications now.
Rubinius on AppCloud in Alpha
Evan Phoenix announces Rubinius on AppCloud, now available in alpha.
Fixing NGINX Content-Length Header Bug Using Rack
I recently ran into an issue with early versions of NGINX not setting the Content-Length header for 201 responses. I fixed the bug using Rack.
CarrierWave version 0.5.3 released
I’m very happy to release CarrierWave version 0.5.3. It features a new fog storage provider written by @geemus, author of the fog gem. It seamlessly supports Amazon S3, Rackspace Cloud Files, and Google Storage for Developers. There are plenty of other bug fixes and improvements from lots of contributors new and old. You can read the full release notes here. Feedback on this new storage provider is definitely welcome. Enjoy!
Shelltoad - command line interface for your Hoptoad errors
Shelltoad is a command line tool which simplifies your working pipeline with Hoptoad service. It allows to view all exceptions from shell and also provides basic git integration.
Teach yourself language hacking
I’ve been putting together some exercises for a workshop to introduce people to language-building. You’re given a parser for a basic Lisp and it’s up to you to write an interpreter for it. I’d love feedback if anyone wants to try it out.
passenger standalone with god on rvm
Searching for new experiences I have tried a new setup - passenger standalone on rvm monitored by god and cron (see Q&A on the end).
Getting RSpec to Work With New and Existing Rails Projects
One of the problems with starting with RSpec is knowing how to even get it setup and getting your first tests to actually run. This blog post helps people do just that: Getting RSpec to Work With New and Existing Rails Projects and yada yada.
Multidimensional data analysis with mondrian-olap gem
If you need to do complex analytical queries on relational database data and if custom SQL is becoming far too complex and unreadable then you might want to check mondrian-olap JRuby gem.
P-99: Ninety-Nine Prolog Problems in Ruby
Guys, let’s kick prolog’s ass! Lets solve these problems in Ruby. I’ve already started.
Did You Know That (in Ruby): For Loops and Fields
This edition in Did You Know That (in Ruby) takes a look at another odd feature of for loop variables: the “variables” can be accessor methods, also known as fields!
Statements in Ruby
A recent detour led me to the discovery that Ruby actually has statements! (Kinda)
RubyKaigi 2011 (Japan's Ruby Conference) is open for talk proposals
RubyKaigi is the de-facto authoritative Ruby conference in Japan. This year’s RubyKaigi 2011 will be from July 16-18 at Nerima Culture Center, Tokyo. RubyKaigi 2011 is open for talk proposals until March 27th(JST). Talks on any topic related Ruby are welcome: RubyKaigi 2011 Call for Presentation Proposals.
Meet the Goliath of Ruby Application Servers
I had the opportunity to discuss Goliath with Ilya Grigorik of PostRank and it’s up on InfoQ, Meet the Goliath of Ruby Application Servers. Thanks for taking a look.
state_machine 0.10.0
state_machine 0.10.0, an FSM library, has been released. Highlights include: Mongoid 2.0.0[.rc7]+ / MongoMapper 0.9.0 (rails3) support, transition path analysis, after_failure callbacks, and more.
Introducing the Code Kata project
I just wrote a blog post about a project aimed at making code katas a bigger part of the ruby community. Have a read to see what I think the past barriers have been and how this project and the kata gem help eliminate them. It would also be nice if you have the time to fork the project and contribute in addition to working on the katas as practice exercises.
PDFKit Overview & Advanced Usage
I just fell in love with PDFKit and wkhtmltopdf and wanted to cover many topics that I found difficult at first. Specifically page breaks and custom headers and footers. Critical topics while moving from legacy PDF::Writer code.
Using ActiveRecord with Sinatra (9 Minutes)
We’ve just released the Using ActiveRecord with Sinatra (Link Fixed) screencast. In 9 minutes we show you how to build a URL shortener. Check it out!
Fetch and validate your params
A post about where to best validate POST/GET parameters in Rails. Also introduces some small helper functions I wrote for that task.