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.
Howto make a redcar plugin
I just finished a blog post on how to make redcar plugins
Ruby CRUD Methods
If you love metaprogramming as much as I do, I just posted a great post on how to setup CRUD-like method definitions in your classes.
ror_ecommerce vs Spree
OK, I am biased and opinionated but I made a Blog Post comparing Spree and ror_ecommerce.
For a Good Strftime - Easy Skeezy Date/Time Formatting
Looking up strftime formatting codes is a pain. With For a Good Strftime you can drag and drop date elements to create your own format codes or choose from any of our lovely presets.
Want to be Awesome with the MongoDB Ruby Driver?
Ethan Gunderson shows how easy it is to use the MongoDB Ruby driver and builds some of the common queries you would find in a common blog, in his article “Being Awesome with the MongoDB Ruby Driver” on RubyLearning.
Bone v0.3 released - Remote environment variables
I released a new version of Bone and launched a free, companion web-service at bonery.com. I use it store dot-files, config templates, and many other things. Here’s the announcement.
Savon v0.8.0 - Major update to the "Heavy metal Ruby SOAP client"
Just released Savon v0.8.0 which fixes quite a lot of bugs and comes with plenty new features. Please take a look at the CHANGELOG and read the all new Savon Guide to get started. Merry christmas :)
Recommended Ruby and Rails books
During the holiday lull I managed to finally update my recommended Ruby and Rails book pages.
comment your magic code
My recent post Comment your magic codes, it said you have to write comments for your metaprogramming codes to make it easy to read for other developers, and it also gives two good comment examples.
Re-purpose JavaScript in ROR_ecommerce
I commonly use some JavaScript in many projects. I created a Video of JavaScript that you can re-purpose from ror_ecommerce. You can see the code on GitHub.
How do I keep multiple Ruby projects separate?
If you have multiple projects in Ruby, it’s a good idea to separate their dependencies. Steve Klabnik shows you how to isolate your Ruby projects from one another, and easily and efficiently switch between them, in his article “How do I keep multiple Ruby projects separate?” on RubyLearning.
Url Shortener With Rails 3, Cucumber and Rspec
Demo app that uses Rails 3, MongoDB, Cucumber and Rspec for an url shortening service.
The Qlobe: A Spinning Globe in a Ruby Quine
Stare in awe at this awesome ‘spinning globe’ Ruby quine at まめめも.
Preconditions and Postrelations on your methods with Gendarme
I have just released a beta version of Gendarme. It began as an experiment for annotating methods (i.e: add metadata to them), so I went thru a complete exercise and built Gendarme. [more inside]
Getting to Know the Ruby Standard Library – MiniTest::Mock
Take a look at ruby’s MiniTest::Mock with me. We will see what the mocking library built into ruby 1.9 looks like, and most importantly, how it works.
IRB in iPhone/iPad
IRB for iPhone/iPad app available in Apple store
Kata 0.2.0 Released
A kata is defined as an exercise in programming which helps hone your skills through practice and repetition. Authoring katas is done in blogs but you can’t really test yourself. This gem provides a DSL to author the kata and administer it as a test providing feedback for evaluation. Check it out on Github.
Rails matchers in any Ruby testing framework
Many people think of Shoulda as a context framework for Ruby tests. It’s really two libraries, however. One is a context framework and the other is a set of Rails matchers that only depend on Ruby. This means they can be used in any testing framework (Test::Unit, RSpec, whatever). This post has more details, including how to write your own matchers.
RailsAdmin
I just found out about RailsAdmin via a link on Reddit. [more inside]
Reverse dynamic data extraction using Nokogiri and Ruby
What?! Reverse dynamic data extraction is a mouthful for simple pattern recognition for data crawling when data form and structure are unknown. Check it out.
WebSockets with EventMachine for Real-Time Communications with Tropo
Here is a blogpost I did on WebSockets and Tropo, Putting the Real-time in your Communications. This shows how to use WebSockets to interact with users over phone calls.
See how other people work & improve your productivity
We just launched How I Work. It’s a free web site to help developers find tools to increase their productivity. The thing that’s different about How I Work is that it’s screencast based because we think that figuring out if a tool will work for you is much easier if you can see it in action and understand the workflow. [more inside]