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.
BasicActiveModel
If you want to implement static models (for a search engine, a contact form…), just inherit from BasicActiveModel : a very small class that provides minimal architecture for a Rails form object.
Delete Large Numbers of Amazon S3 Files using Ruby
I wrote up a post about how to Delete Large Numbers of Amazon S3 Files using Ruby. I came across the need to delete several hundred thousand files from Amazon S3 but no tool would work, so Ruby to the rescue.
Five Essential Performance Optimization Steps
Performance optimization of any software project is a mix of art, science, stubbornness and inexplicable improvement. Most developers will spend incredible amounts of time tweaking their application to squeeze out performance gains, regardless of the value they provide. As the old saying goes, given enough optimization rope, developers will quickly hang themselves. [more inside]
The Ruby movement
Matt Aimonetti writes on The Ruby movement; a parallel between art movements and programming and what makes Ruby special. A guest blog post on RubyLearning.
Form builders in Rails: field names and ids for Javascript
I’ve just written a post on Form builders in Rails: field names and ids for Javascript. In it there are handy helpers to aid in writing JS for your rails apps.
XSS Protection
A short post just to remember WHY developers should take care about XSS protection this days
Let's not add_bundler_dependencies anymore
Another Bundler article about letting the Bundler Gemfile read your .gemspec instead of the other way around.
Signal playing nice with Bundler
Signal, the continuous integration server, now is playing nice with Bundler. Know the problem and the solution in this post.
Almost everything is an object (and everything is almost an object!)
David Black explains to Ruby Noobs that almost everything in Ruby is an object (and everything is almost an object!). A guest post on RubyLearning.
TcpSyslog for Rails
Just drop the file in /lib, add a config.logger line in your environment files, and you’re ready to go. Read more
Ezror: Simple,easy Rails deployment script
No more spending hours trying to deploy Rails app? Ezror installs/configures Enterprise Ruby, rubygems, mysql, Rails, Apache, Capistrano, and Passenger.
Crazy Tests
I just made this totally useless script that plays a burp sound every time that one of your tests fail.
Effective Qt in ruby
Part I</a href> and part II of a series of articles on GUI programming in ruby with Qt.
rails_best_practices 0.4.1 released
I have released rails_best_practices gem 0.4.1, it uses rvm and bundler to setup the development and test environment, adds progressbar and colored output for analyzing result.
Generate polymorphic url
I have wrote an article Generate polymorphic url, it gives you a hint that you should use the polymorphic_path/polymorphic_url to simplify the polymorphic url generation.
Use WinRM in Capistrano
Just published a gem that allows you to use WinRM for MS Windows systems in Capistrano: http://bit.ly/blog_winrm_cap
Hooks and callbacks done the simple way.
A small post how to use hooks, a new gem on the block. It shows how simple hooks and callbacks (like a before_filter) can be implemented or how you can improve your application code.
Chuck Norris gem
I just launched Chuck Norris gem.
Why I rewrote the Chronic gem
Why oh why would you reinvent the wheel? Here’s at least three reasons.
Testing with many Rubies with Infinity Test
Infinity Test is a continuous testing library and a flexible alternative to Autotest, using Watchr library with Rspec OR Test::Unit with RVM funcionality, giving the possibility to test with all Rubies that you have in your RVM configuration. [more inside]
Utilize Rails 3 and the cloud to become a more efficient developer
A very nice demonstration on how to build, publish and load-test a realtime application in 45 minutes (using Rails 3, Heroku, MongoHQ, Google font directory, Pusher and BrowserMob): The future is here – Rails and the cloud ecosystem.
How Searchlogic dynamically creates named scopes
An article on how Searchlogic generates named scopes.
Writing modular HTTP client code with Faraday
I just wrote up a post about Faraday, Rick Olson’s Rack inspired HTTP client library.