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.
ActiveDevice: UserAgent Parser and Mobile Device Detector Released
I’m glad to announce the first release of ActiveDevice, A Rails Gem and Plugin for UserAgent Parser and Device (Mobile, Desktop Browser, Bot) Detection.with many helper methods for checking and detect the Mobile Brand, Model, Engine, others ..
Experiment your rack based app with Rack::Console like a mad scientist?
I recently released “Rack::Console”, a rack library (inspired by racksh) where you can run rack based apps with “config.ru” file into console/shell. Check my post regarding this extraordinary library (with examples and instruction). http://bit.ly/7W0XfS
Blueprints VS. Factory Girl: speed comparison
A speed comparison between factory girl and my new gem blueprints.
Vote for RightJS in Google AJAX Libs API
If you like RightJS, consider voting for RightJS to be included in Google AJAX Libs API. And if you don’t know this both powerful and lightweight lib yet, you might want to check it out, nomen est omen!
How to use Google Calendar and Rufus-Google for Basic Time Tracking
In this article I’m sharing the code I use to handle simple time-tracking/invoicing with Google Calendar and rufus-google. [more inside]
Rails 2.3.5 released
What’s annoying me the most about Rails 2.3.4 is its Ruby 1.9 incompatibility issues. But now, with the release of Rails 2.3.5, I am finally set free from patching it. Of course this release contains other bug fixings and maybe enhancements, we will get more information on it when the release note comes out. Now, run gem update rails on your box!
Rubinius 1.0.0RC1 Released!
Eventually, Rubinius hits its 1.0.0RC1 release. There is no release notes yet. Down load it and follow the instructions in its home page to have fun!
[ANN] Ruby Challenge for Newbies #4 now open
The fourth installment of the Ruby Programming Challenge for Newbies is now live. The problem has been set by Michael Kohl. No entry fee. Registration is optional and a chance to win a prize. Hurry, challenge ends on 20th Dec. 2009.
Rack::ESI gem released
Today I released a small gem, rack-esi. It’s a Rack middleware providing almost the same functionality as Varnish. Features include path blacklisting, type whitelisting, recursion limits, include limits, support for <include> alt and noerror attributes. The main target is to simulate a production environment. [more inside..]
Scaling to the edge of Rails - Part 3
The scaling to the edge of rails screencast series was just updated with part 3
Rake Completion
Completion Rake tasks by Tab with caching, package in Ubuntu on Rails PPA and sh tests :).
Fixing Uninitialized Constant MysqlCompat::MysqlRes Error on Snow Leopard
I ran into this problem when setting up a new MacBook Pro running Snow Leopard recently and thought others might find it useful when running into the uninitialized constant MysqlCompat::MysqlRes error when trying to connect to a MySQL from Ruby.
Using rails to build an API
Some thoughts on using Rails to build an API, and other observations I had while building one.
Top 7 RSpec Best Practices
It’s really hard to overemphasize how helpful RSpec is and how much easier becomes your life if you have good specs coverage. But its outstanding flexibility enables many ways to make your specs awful: horribly slow, over-bloated, even non-readable sometimes. In this article I will give you some ideas how to improve your specs quality and increase efficiency of your BDD workflow.
Pancake - stacken them up
I came across Pancake today and feel it could be a game changer on developing rack based applications. Here is extracted from its readme: [more inside]
XML Feed and Documentation in Rails
Learn how to add a simple XML feed and generate documentation on your Rails application here!
Rango 0.1 Released!
I am happy to announce the first public release of my new framework Rango. Rango is a small MVC framework inspired by Merb and Django builded on top of Rack. It’s clean, simple and it’s trying to be as agnostic as possible. It has Bundler support and mainly, it’s the only Ruby framework with template inheritance! [more inside]
Stubbing and Setting Expectations on HTTP Requests Is Now Easy With WebMock
Is your application making HTTP requests? Are you also tired of writing complex tests with HTTP library methods stubbed? Do you end up testing implementation of Net::HTTP or other HTTP libs instead of testing behaviour? Do you have to change your tests or specs any time you change your HTTP library, even if behaviour doesn’t change? I had the same problems so I created WebMock gem.
Phuby on Phails video from RubyConf
Here is my Phuby on Phails demo video from RubyConf
Administration system in Rails
Learn how to create a simple but effective administration system in Rails here. Make sure you check out the other tasks on how to create an online depot applocation in my Rails Learning Experience!
Rack::Rewrite + Google Analytics Makes Site Transitions Seamless
Learn how to very simply ensure that a site rewrite or transition is executed smoothly by leveraging Rack::Rewrite and Google Analytics.
Check your scripts with JSLint on Rails
Did you have a feeling that you should be running JSLint on your Javascript code, but you never had time to integrate it with your Rails project? Now you have no excuses: Check your scripts with JSLint on Rails (GitHub page: http://github.com/psionides/jslint_on_rails).
Overridable, say goodbye to method alias
I just released a gem called overridable on Gemcutter.org, that gem helps you make your methods to be overridable by including modules. So you can dismiss things like alias_method_chain. Give it a look.
Transition from #ruby to #jruby on #rails on #torquebox.
JRubyist Dan Tylenda-Emmons wrote a small article including a handy ruby script to help you transition from ruby on rails to an enterprise class jruby on rails deployment environment. The script will download and install torquebox, set up your paths for you, and install jruby-openssl in an automated process.
Fukuoka Ruby Award - Deadline Extended
Fukuoka Ruby Award Submission Deadline Extended to DECEMBER 4, 2009. Visit http://www.f-rubyaward.com/index_en.html for more info.