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.
You're cuking it wrong
I’ve been seeing what I perceive to be an anti-pattern in cucumber features: mixing in code into the feature. Check it out!
GitHub Stats by Programming Language
A few years ago there was a migration of Ruby developers from Rubyforge to GitHub. Here are charts and statistics on GitHub data by programming language (Ruby leads the pack :) ).
Get a random record out of a MongoDB collection using Ruby
Since there is not yet a native way to get a random record out of a MongoDB collection, here here is how I did it using Ruby.
Git to the rescue of SQL migrations
Learn how to use git as a file history manager, and why you should use it in your migrations : Diff joy for your migrations with git.
Rails, Ajax and Exceptions? Bring it on.
In this article I write about Rails exceptions raised in an Ajax request, how to handle them in a fashion as DRY as possible and to inform the enduser in a matter I/we see fit. I hope you like it!
Unveil.js now supports Chrome5+, FF3.5+, Safari4+, Opera10+ IE9+
Finally, I’ve managed to add a cross browser mouse picking implementation (without hacks). It should now work in all browsers that support ctx.isPointInPath(). Please file an issue if you encounter some problems. Unveil.js
Secure mysql in 10 minutes
The second in a series of articles on securing services on linux, Secure a MySQL server in 10 minutes.
AxeML - an SXML-like library for contructing Nokogiri documents
AxeML provides a literal notation for Nokogiri XML documents similar to that of Scheme’s SXML and thus is an alternative to Builder::XmlMarkup and the like.
Iris Data Set Visualized using R through Sinatra in 100 LOC
The statistics community has some well known data sets that are used to demonstrate and test visualization and data mining processes. This post demonstrates a web app written in Sinatra that interacts with RServe. Total lines of code - less than 100 lines excluding comments.
Secure Memcache 2 in minutes
Using memcached? Did you see the recent security news? Learn how to secure memcached in two minutes.
CoffeeScript for Ruby Bros
David Eisinger from Viget Labs blogs about what CoffeeScript has to offer to Ruby Programmers.
Use DB constraints in rails
How using constraints with your rails app makes debugging easier and gets developers up to speed faster.
Making Rails 3 RC, MongoMapper, and Devise play nice...for now
A few days ago, I blogged how to get Rails 3 RC, MongoMapper, and Devise up and running. I thought others might find this useful.
OAuth Disco – No fluff, just code
I just wrote blog post for people who are new to OAuth and would like to see it in action (instead of looking at pages of documentation).
Get your Ruby code sweet with Zucker
Zucker is a small gem that adds syntactical sugar to Ruby :) [more inside]
Five quick steps to set up RVM with rails 2 and rails3
You can read it here! It covers installing RVM, installing ruby inside your rvm, setting up rvm to use your specific ruby version, installing rails 2 and rails 3 RC inside different gemsets and switching between different rails versions.
Panmind at Ruby Social Club Milan
On July 22nd, 2010 I presented open source Rails plugins spinned off from Panmind’s codebase (with full commit history) at the Ruby social club in Milan (hosted by Mikamai).
Make Ack look into haml files too
If you’re using Ack (the fancy grep), you won’t be able to find anything in your haml views unless you use this tip.
Nailgun using ruby
Nailgun is used to preload JVM so no need to load JVM on executing java.Since many ruby/rails application/plugin uses java library.To improve performance of application we can use nailgun. More info you can find here.
Make cookies more secure
Lean how to make your cookies and sessions more secure with some basic tips : http://www.tech-angels.fr/post/840662150/ruby-on-rails-secure-cookies
Ruby: On The Perl Origins Of “&&” And “||” Versus “and” And “or”.
Notes on the reasoning behind the Perl operators for Ruby programmers not versed in Perl. In response to Avdi Grimm’s post.
3D OSX Desktop Applications With Ruby-Processing
A two-part screencast series demonstrating two different 3D desktop applications using ruby-processing on JRuby. Source code by Preston Lee available on his GitHub account: Starfield.app and Twiverse.app.
Rails 3 Internals: Railtie & Creating Plugins
Rails 3 release is on the horizon, and Railtie is what ties all the new modules together. A look at how it works, and how it enables us to build super simple and easy plugins for Rails 3!