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.
How do I test my code with Minitest?
Ruby Hero Steve Klabnik’s new article on RubyLearning “How do I test my code with Minitest?”
LogicalModel - Like ActiveRecord for Restful Resources
I just launched Logical Model, like active_record for RESTful resources. Its code is almost all found on ihower’s slides but since I found no implementation here goes mine. It’s still pretty raw but I’d be glad if you gave it a try and dropped my some issues/advices/praise.
Persist your data in YAML files instead of SQL. Wait what?
A couple weeks ago, we open-sourced a simple library called YamlRecord adding a standalone ActiveModel interface to YAML persistence. Today, Nico Taing published a follow up blog post on the Miso engineering blog about how we built this, what we use it for and why it makes sense for us in particular scenarios.
Taming a Capybara
Simple Rails Deployments with Net/SSH
I just wrote an article on how to use Net/SSH to do simple Rails deployments.
Mining Cucumber Features. Failure rates and change rates
http://blog.josephwilk.net/cucumber/mining-cucumber-features.html
delayed_paperclip 0.7: Delayed processing of Paperclip attachments
We just released the 0.7 version of the delayed_paperclip gem. Delayed_paperclip allows you to do the processing of your Paperclip attachments via Delayed Job or Resque. It’s now also very easy to create a class for other background processors.
How Can We Develop For Tomorrow’s Needs?
James M. Schorr asks you “How Can We Develop For Tomorrow’s Needs?” in a new blog post on RubyLearning.
Fixing Memory Leaks in Ruby C Extensions
I just wrote an article that explores how to find and fix memory leaks in Ruby C extensions. The follows along as I find and debug a memory leak in Nokogiri.
Disabling transactions in single rspec test (describe block)
When database writes in your tests become invisible by other threads/processes. Check it out.
Capybaras, capybaras everywhere!
Found great little nugget while mining in Capybara: Use Capybara on any HTML fragment or page!
Firelinks mirrors your Firefox current web browser page in elinks
I just launched Firelinks, a Ruby gem that lets you sync your Firefox web browser with elinks.
Simplifying ActiveRecord Connections
An easier way to manage database connections with ActiveRecord on your production servers, without having to commit passwords into source control.
Ruby server to manage download of movies with torrents
I’ve just finished polishing off movie_queue, my first draft of a server that makes it super easy to download movies. See more info inside.
Jsonify -- a builder for JSON
I just released Jsonify. Jsonify is Builder for JSON. It allows you to create Rails3 view templates for your JSON representations in much the same way that you can use Builder templates for XML representations. It’s currently an early release and I would love to have some folks “kick the tires” on it.
Introducing "Has Face" for Rails
Latest blog post by Mario. A gem for interacting with face.com: Introducing Has Face for Rails
JavaScript for Rubyists
Slides and handout from my ConferenciaRails JavaScript introduction for Rubyists.
LRE - Easy Interactive Environment
I just launched LRE, an easy interactive environment. Key features: * Specify files to load and code to run whenever LRE is started in a particular directory. * Automatically load changed files into the running IRB session. * Setup different actions to take when different files are changed and loaded.
.rvmrc and Terminal in OSX Lion
In OSX Lion, Terminal now defaults new tabs to open in the same working directory you were just in. That’s nice, but your .rvmrc file will not get executed. That’s because RVM only executes it when you cd into that directory, and opening a new session in that directory doesn’t count. Here’s a fix. Add this to your ~/.bash_profile or whatever you use: cd . Whenever you open a new terminal session, this will automatically cd into the current directory, triggering RVM to execute the .rvmrc. This seems like a quick and dirty trick, so if anybody knows a better way, please comment.
Rack-webconsole: a Ruby/Rails console inside your browser
We just launched a new Rack middleware that injects a Ruby console in your browser. You can read more about in this article :)
Why don’t you use and review these useful Ruby Gems?
If you have written a useful Ruby Gem, you can showcase the same on RubyLearning. A new blog post “Why don’t you use and review these useful Ruby Gems?” showcasing some Ruby Gems from developers like you and me.
Code Koans - The TDD way to learn a new language
A pecha-kucha style presentation on code koans, which leverage the Test-Driven Development style to help you master new programming languages. Ruby, Clojure, Scala, and Javascript are all covered, and getting started is amazingly easy.
Slim, the template language, v1.0 released!
Very happy to announce the 1.0 release of Slim. Details on this release can be found in the changelog. [more inside]
Expanding on the Law of Demeter
Recently Avdi Grimm posted a great run down of common Law of Demeter violations in ruby, but I felt like he left the worst type of Demeter violations out. So I’ve expanded on his post here: Expanding on the Law of Demeter