RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

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

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.

http://gist.github.com/215640 …
Thanks Pius, Here is another one liner : puts (1…1000).select { |n| n % 3 == 0…
By the way reason I like the mathematical approach is, it saves so many checks …

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.

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.

Post gets updated

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.

Large ring boom fever, plus a variety of precious stones of various sizes, allo…

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.

The missing link …

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.

Why should I chose it over acts_as_nested_set?
You might want to check out the README :) Looks like this is a materialized pa…
sudo gem install ancestry ERROR: could not find gem ancestry locally or in a r…
@george: Check updated README. It is distributed through gemcutter and you shou…
Loading older posts