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.

CloudKit 0.10.0

Just released, CloudKit 0.10.0 supports this week’s Rack 0.9 release and batch URI resolution. More details on the blog.

authorization

A simple and very flexible gem/plugin for rails that handles authorization. It requires you to write your own “authorized?” method on your User model (or whatever class you’re authorizing) which allows it to work with ANY type of permissions architecture. .

This one’s also pretty good: Base Auth - a tutorial to do authorization in Rail…

Your opinions on the Rails / Merb merger are needed!

Someone I know is writing a feature on the Rails / Merb merger for the 2nd issue of The Rubyist (Ruby magazine). He/she will be interviewing several people but also wants to get a general community feel for the opinions surrounding the merge. So, say anything you want here on RubyFlow, get it all off your chest (extreme, intelligent, thoughtful, or otherwise) and you could be quoted and get your name in a shiny magazine article! (If you don’t want to be quoted, make sure you make that clear in your comment..)

1) DHH tells people to go fuck themselves, too. 2) “we can even tell DHH to go …
I saw an interesting tweet the other day: Rails was the thesis, Merb the anti…
^^ There you have your quote, Peter ;)
It’s not for me, but my contact will be very happy with this :) Thanks everyone…

Remarkable 2.1.4 - Simplifying tests for trivial things!

“For a long time I was evangelizing Shoulda at Surgeworks and used it in my personal projects. The fact is, I didn’t have much success in convincing my co-workers to adopt Shoulda. On the other hand, they managed to convince me to learn and use RSpec. I got to like RSpec more and more, so I decided to adopt it as my official testing framework from now on. But I can no longer live without the resources that Shoulda offers me. So I decided to scratch my itch.” Remarkable

Initial post wasn’t descriptive.
Looks like it’s tailored to Rails users. It’s not a general Ruby testing framew…
Would Probably use it if it were less rails centric.

Remove leading and trailing blanks from attr vals in Rails models

Somewhat like nillify_blanks, stripper converts blank field values to nil. However, it also removes (ie strips) leading and trailing blanks from the value first. Another distinction is that it performs this stripping whether or not the column allows nulls–I’m from the school that believes an empty string makes no sense as the value for a column marked as NOT NULL :).

It should be noted that some RDBM’s automatically convert empty strings to NULL…
No, MySQL doesn’t. I don’t know if it’s configurable to do so, although I’d per…
The only database that I’m aware of that does is Oracle and, ironically, I don’…
I’m glad Oracle does it. It annoys the Java “programmers” at work to no end bec…

How to use Sinatra (and other band members) to build an iPhone message tracker

There’s an article over at Technetra demonstrating how to use Sinatra, Ruby and other tools to drive a mobile client like the iPhone, and integrate it with a live data source. The client side is JavaScript and CSS customized for iPhone’s Safari (but playable for testing on a desktop browser like Firefox). The server side is all Ruby and Sinatra. Sinatra sings a simple but complete Web interface tune while core Ruby plays a drum beat with the live data feed – in this case the Bluez D-BUS message stream on Linux. The article is also notable because it’s presents a good example of how to write a module on top of ruby-dbus to monitor Linux’s Bluetooth subsystem.

Installing Git on Mac OS X Leopard and setting up a public repo on GitHub

Yes, I know, very basic and easy, but that’s the point, this is my blog about learning Ruby on Rails. This post explains the basics of installing Git on Mac OS X Leopard, getting a public repo setup on GitHub and communicating with it. Check it out at Learning Ruby on Rails, one step at a time

Screencast : How to Create a File Upload Progress Bar in Rails

An upload progress bar is one of the best ways to improve the usability of file uploads in your application. This screencast will show how to create a file upload progress bar using Rails, Passenger, Low Pro and the upload progress bar Apache module.

Direct link: http://www.railsillustrated.com/posts/file-upload-progress-bars-de…

attr_encrypted

Generates attr_accessors that encrypt and decrypt attributes transparently. It can be used with ANY class, although you get a few more features if you’re using it with ActiveRecord. Its plugable encrypting backend makes it very flexible.

I’ve considered writing something similar for DataMapper. But I always got stuc…
Just added DataMapper support
And Sequel support

DaemonKit - Create Ruby daemons in no time

Daemon Kit aims to simplify creating Ruby daemons by providing a sound application skeleton (through a generator), task specific generators (jabber bot, etc) and robust environment management code. Using simple built-in generators it is easy to created evented and non-evented daemons that perform a multitude of different tasks. The first version, 0.1 sports a jabber generator, with the evented jabber generator coming soon. The code is still pretty much rough around the edges, and it lives over at GitHub.

Very cool.
I need this yesterday. Now that daemon generator is dead this hits the spot.…
@malcky, so did I, thats why I built it. Got too tired of setting up the same o…

Rails, Exceptions, Hoptoad, and Annoying User Agents

Hoptoad is a service that allows you to funnel all of your Rails exceptions to a central location so you can splice, dice, and fix them. I’ve noticed however that some web spiders mangle valid URLs into invalid ones and rather than deal with all the possible permutations it would be a lot nicer to simply have Hoptoad ignore them completely.

Ruby symbols

I keep seeing some programmers from different backgrounds are unable to get what ruby symbols are, and though I do know that there are many great posts regarding this topic, and actually my intent is not to increase them by one :) , but i feel i have to clear few points regarding them. So I’m trying to answer answer 2 important question here: What are ruby symbols? and When to use them? Answers goes here :)

Action Guide to git submodules (with Rails flavor)

The article collects current best practices of a submodules workflow and form a “howto” kind of guide, So if you’re still asking yourself “How shall I track changes in my submodules?” or even (if you’re cool and eat your own dog food) “How shall I use the submodule in my app, have it editable/pushable and let others clone the app without any issues?” - read on, you should find your answers.

Loading older posts