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.

Simplify stylesheets on your Rails application

styled_objects is a Rails plugin for simplifying stylesheet management on your application. Instead of having one or more large stylesheets on your public folder, have many. Keep your CSS close to their respective templates. styled_objects will compile them into one file per page. See styled_objects on github

This is a neat idea. I love the Rail’s communities drive to be better, but I do…

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.

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 …
Loading older posts