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.
Owning Basic Rails in 7 days
A few days ago I wrote a book Rails - 101, it’ about how to owning basic Rails in 7 days. Everyone knows the learning curve of Rails is alyways too high for beginners. You can’t find too much good developers in the market. In my past career, I had trained 3 profession Rails teams, over 10+ Rails developers, lead them from novice to professional. The secret is I write a tutorial to eliminate the learning curve that time. This tutorial covers many basic but important intrusions and exercises, to help them cross the first stage. So they can easily own Rails in 7 days, not months. Now, this tutorial becomes book Rails - 101. Check it out ! More story about this book.
Running the Pow Web Server Over SSL
Step by step instructions for running your site locally over SSL with Pow.
Mocked Carrierwave with fog
Mike Gerhard writes about using fog mocking to improve the test coverage of your Carrierwave integration.
let and nested describe/context blocks
Over on the Highgroove blog, I posted a small tip about using let and nested describe/context blocks with RSpec to DRY up test code.
Build native apps from javascript web apps using SproutCore and Strobe
Come watch as Yehuda Katz talks about using web apps (some rails) to build native apps using SproutCore and strobe.
The Billy Baldwin of Conditional Assignment
You may not know about the &&= operator, and you may never need to. But for the curious, learn how to set variables that are already set in our latest blog post.
Benchmarking in Ruby... an investigation. Any wish, idea, comment, critics?
I would like to collect comments and wishes about benchmarking in ruby. Any existing tool, blog to read, idea or use case?
Proper catching controller-level exceptions in Rails
A tiny note: Proper catching controller-level exceptions in Rails
Rails Misapprehensions: Query Parameters are RESTful
Long URLs and query parameters are nothing wrong in REST, however you’re free to expose additional resources with dedicated URLs in your Rails project (or anywhere else). Read how resources, URLs and query parameters fit together and feel free to comment!
Introducing MongoHydrator
MongoHydrator is a new gem that makes the expansion of embedded MongoDB IDs into full subdocuments easy and efficient.
modernizr-rails: a new gem for including the modernizr javascript library in your Rails 3.1 apps
A simple gem wrapper that allows the use of the Modernizr.js library in your Rails 3.1 apps via the new asset pipeline: https://github.com/russfrisch/modernizr-rails Enjoy!
Codebrawl's very first code contest has started
This week, the challenge is to create your own formatter for RSpec 2. Your solution should solve a problem you’re facing with the existing formatters (like, I don’t know how long my specs are going to take or I don’t notice when my suite is done running) or you can do something completely crazy and funny. Good luck!
Against Ruby 1.9's Hash Syntax
Phil Nash discusses why he doesn’t like the Ruby 1.9 Hash syntax. Lively debate ensues in the comments.
rack-protection released - You should use protection!
rack-protection is a collection of Rack middleware to protect you against common, opportunistic attack. Use it for your Rack, Sinatra or Rails application and finally sleep well again.
My Weekend Project: BundleWatcher
BundleWatcher will help you keep track of updates to the gems your projects use, just by uploading your Gemfile.lock.
Rollable v0.1.2; now less crappy!
Saturday I released a new version of rollable, agnostic roles for Rails. Now no longer breaks is_a? (Yeah, seriously) and works with Rake 0.9.
How to manipulate data easily? Try Alf, fresh 0.9.0 release and looking for contributors!
I just launched Alf 0.9.0, a ruby library and commandline tool to manipulate data easily. This is a call for contributors towards a stable 1.0.0 in a few weeks
Ruby Adventure
I’m planning to travel across the USA and pair program with as many people as possible. If you know a meetup I should attend or want to pair with me, go to my site and send me an email. I’m very interested in learning and sharing knowledge with as many people as possible.
Exceptions as flow control in JRuby is suboptimal
I just saw a blog post by Chris Heald that used profiling to find some libraries that were using exceptions as flow control, which causes issues in JRuby . Seems worth a read if you use JRuby.
[Tutorial] Using Thor To Create A CLI
We figure out how to use Thor to create a command line interface by reproducing the login functionality of Cloud Foundry’s VMC gem.
Automate your application's development environment with Guard
As applications become more complex, you might find yourself repeating particular actions over and over again in your development environment. Learn how you can automate such actions using the Guard RubyGem.
Django 1.3 vs Rails 3: A not so final showdown
I’ve just wrote a short comparison of Django and Rails.
Rexpl - an interactive bytecode console for Rubinius
I just wrote an article about the motivations behind this bytecode REPL, for all Rubinius lovers!
MakeWatchable and MakeFlaggable ActiveRecord extensions
Just released two small ActiveRecord Rails extensions: MakeWatchable (for adding watchers to something) and MakeFlaggable (to flag something). You may get this functionality also by some other (mostly larger) extensions or implementing it directly in your app, but I prefer very problem specific and small extensions … and that is what those are.