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.
Ruby Object Model - description of super
The document at www.atalon.cz now contains a description of the parent method call (super) logic.
A conference website built with nanoc3
I just created the website that will host the next Italian Ruby Day. I’ve built it with nanoc and I wish it can be improved to be useful for many other conferences.
Geo-Rails part 6: Scaling Spatial Applications
I just posted Geo-Rails part 6: Scaling Spatial Applications, the latest installment in my ongoing series on geospatial programming using Ruby and Rails. It covers database scaling in the presence of geospatial data.
to_wordpress_html using coderay
Hello all, happy new year! I would like to share my first post here useful for highlighting your code snippets on wordpress default theme.
035 Ruby Rogues Estimation
Today the Ruby Rogues discuss estimation, tracking of projects, measuring speed and better managing project time.
Scraping Rackspace for your API Key
My recent endeavor with grepping rackspace for my api key.
ActiveRecord (and Rails) Considered Harmful
I just posted a new blog post. New years’ is about reflection, and here’s some of my reflections on how Rails could improve.
Intro to Machine Learning in Ruby
Example of statistic classification in Ruby.
Ultra Fast ORDER BY RAND solution
I just extract my own random solution to a gem . This solution is based on this post. http://jan.kneschke.de/projects/mysql/order-by-rand/ - It is fast more than you think. Check it out! https://github.com/xdite/fast_random
PubSub Chat Using HTML5 Web Socket and em-websocket
Long back i was working on HTML5 Web Socket and created pubsub chat application so i am sharing my thoughts and demo onto it.
Redis in the NoSQL ecosystem
New blog post at Siyelo’s blog: Redis in the NoSQL ecosystem.
MiniTest Quick Reference Guide
I just wrote a quick reference guide on MiniTest. It aims to demonstrate MiniTest’s main concepts and provide real world examples to get you acquainted quickly.
rails_best_practices has been moved to railsbp organization
I moved two repositories rails_best_practices and rails-bestpractices.com from my personal account to railsbp organization on github, https://github.com/railsbp/rails_best_practices and https://github.com/railsbp/rails-bestpractices.com
Executor v0.0.1 released (exception handling via forked processes)
Exception handling via forked processes! Ever use system 'somecommand that silently fails' and spend hours tracking down an instance where stderr was not showing in the logs? I haven’t.. it usually has only taken a few minutes aided only with the knowledge that the system call is probably failing. It would be great if there were a more standardized way to handle redirection, logging, and exception handling for external commands. Executor aims to solve these issues.
no more `bundle exec ...` v0.2.8 is out
I just build new version (0.2.8) of rubygems-bundler integration gem, it allows you to just skip writing bundle exec ... Read more
Managing Daemon Using DaemonKit
How to start/stop daemon using Daemon Kit from any directory.
Meet DirtyHashy: Dirty tracking within hashes or objects as it's expected to be!
Dirty tracking / objects is a common programming concept. In short, it is the concept of tracking whether or not the attributes of an object have been changed and if so, which ones. It is mostly implemented within ORM’s, a couple of examples are ActiveRecord, DataMapper, Mongoid and CouchRest Model. Ironically, I haven’t found a gem suited for the simple desire of dirty tracking within Ruby hashes. Enter DirtyHashy!
bundle exec rails … executes Bundler.setup 3 times
Santiago Pastorino posted about it here.
Your Rails Application is Missing a Domain Controller
Do you find it difficult to determine the API of the domain layer in your complex Rails application? Where should you put workflow logic that collaborates with multiple models? Are you models getting bloated with multiple responsibilities? Perhaps your Rails application is missing a Domain Controller.
I just released a gem for multipart emails w/ alt. content types & attachments in ActionMailer 3
When you need alternative content types and (inline) attachments in a email, the correct MIME hierarchy quickly becomes complex. My new gem mail_alternatives_with_attachments makes it easy just like the rest of ActionMailer.
attr_accessible_block gives you dynamic attr_accessible
attr_accessible_block is an ActiveModel plugin that gives a few features to deal with mass-assignment while runtime.
034 Ruby Rogues Benchmarking and Profiling
This week the Ruby Rogues discussed benchmarking and profiling, tools to use, what the results mean and how to (and not to) use those results, with Aaron Patterson.
Introducing Kue - A Rails Ready Key Value Store That Uses ActiveRecord Under The Hood
An activerecord backed key value store gem called kue.
csv_import gem
I just launched csv_import gem. Any ideas, suggestions are welcomed.