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.
Improving the Rubinius Bytecode Compiler
Brian Ford just posted details on his current efforts to improve the Rubinius Bytecode Compiler; it’s a good read!
Zero-effort Location-aware Rails application based on W3C Geolocaton API.
I just launched GeoMereLaal , A Rails plugin to help you create GeoLocation aware apps , based on newly introduced GeoLocation API in Firefox 3.5.
Solving Project Euler Problem #2 in Ruby
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, … Find the sum of all the even-valued terms in the sequence which do not exceed four million. Solution
Enhance Your Irb With Boson
Learn how Boson enhances Irb as a manager for your methods/commands. Boson let’s you precisely search your commands, load groups of commands on demand and even install third-party commands into your irbrc with a url pointing to any ruby code. Managing and using a large irbrc is now a cinch.
Solving Project Euler Problem #1 in Ruby
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 100. Solution.
Nginx & Comet: Low Latency Server Push
Nginx can be converted into a fully capable long-polling Comet server with a single plugin. Best of all, it is fully asynchronous, supports message queuing, memory limits, and is easy to get started with. A look at the configuration and a sample ruby client.
v is for versioned - a new Git library
After working with grit I started writing my own git library named “v” with further design improvements in mind.. [more inside]
Display a Google Map with Rails
This is a tutorial on how to display a Google Map with Rails and the YM4R/GM plugin in 3 steps.
Devise: flexible authentication solution for Rails
Plataforma just released a new authentication solution for Rails called Devise. It was built as an engine and it moves all the session handling to a Rack middleware, so you can share the same authentication rules easily. It’s intended to be flexible, so you can work with several roles (admin, user and so on) and all of them can use different strategies as password recovery (recoverable), account confirmation (confirmable) and others.
Rails plugin for RightJS was released
I just launched Rails plugin for RightJS and there are lot of good and right stuff. It’s not just a Prototype replacement, there are several new cool features, like remote files uploading handler, new more powerful javascript generator, new helpers and more.
Debugging JRuby apps
JRubyist Dan Tylenda-Emmons talks about debugging jruby applications with IntelliJ IDEA.
Ruby on Rails Interview Questions
This post will be usefull for the basic ruby on rails developers.This consists of frequently asking questions for ROR Interview.Apologies if or anything wrong.
BDDCasts: Using Selenium with Webrat and Cucumber
Testing with Cucumber and Webrat is great, but when it comes to Ajax requests or Javascript, it seems to be a real pain. Well, not anymore. Watch the second episode of the Tools series and see how to use a fully featured browser such as Firefox with a well known plugin, Selenium, to test this functionality. You’ll learn to configure Cucumber profiles, emulate transactional fixtures using database_cleaner, create a Rails env for Selenium and more.
Solving Project Euler Problem #5 in Ruby
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest number that is evenly divisible by all of the numbers from 1 to 20? See the Solution.
Rails deployment made easy with Inploy
Inploy is an alternative to Capistrano. It’s intended to be simpler, smarter and faster. Read more about it here.
New Screencast: Creating a Twitter Clone in Rails - Part 3
In this screencast, we continue our challenge of creating a Twitter clone called ‘Flitter’ using Ruby on Rails. We learn how to use jQuery to create a countdown for the text area box. We also set up adding and removing friends via the interface. Oh… you hear my baby cry and my sister-in-law call. Fun stuff :D Check it out at TeachMeToCode.com
Test Driven Development in Objective-C with MacRuby
Ever wish you could take advantage of a Ruby testing framework to do Test Driven Development in Cocoa? Well, wish no longer! With MacRuby, any Ruby testing framework instantly becomes an Objective-C testing framework. Let’s see how…
The Art of Library - How to Make It Happen!
Thinking about writing a library to ease pain for other developers? Know how to make life easier? Wesley Beary (@geemus) has a new post on the Engine Yard blog on The Art of Library: words of wisdom for how to get it right. Check it out!
How I Killed My Signup Form with Rails
Even though the gradual engagement meme has been around for a while, and everyone just hates signup forms, they just seem to keep popping up like a bad habit. My site, Newsforwhatyoudo.com was one of the guilty parties. We saw users coming back to the site repeatedly, but not signing up. The percentage that looked at the signup form and then bolted was uncomfortably high. It was time to kill the signup form. This blog post documents how we implemented gradual engagement using Ruby on Rails and restful authentication.
Rails Vs. Tarantula
If you don’t have time to write tests or you need another one Tarantula can help!
Migration helpers for PostgreSQL
This is timesaver for middle/large Rails application which used PostgreSQL as database. Create/drop Views, Functions, Triggers, Foreign keys in your migrations using ruby syntax. http://github.com/alex3t/rails_on_pg
Using Proprietary C Libraries from JRuby
JRubyist Dan Tylenda-Emmons wrote an article about using JRuby & Java to integrate with proprietary C libraries. Includes high-level example JRuby, Java, JNI & C code, along with rake & Makefiles.
Full Text Searching on Heroku
I just wrote a new blurg post on how to get full text searching on Heroku working. I hope you enjoy it!
Ancestry 1.0.0 released!
I just launched Ancestry 1.0.0. Ancestry allows the records of a ActiveRecord model to be organised in a tree structure, using a single, intuitively formatted database column. It exposes all the standard tree structure relations (ancestors, parent, root, children, siblings, descendants) and all of them can be fetched in a single sql query. Additional features are named_scopes, integrity checking, integrity restoration, arrangement of (sub)tree into hashes and different strategies for dealing with orphaned records.