Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

PIVOTAL LABS
Standup 02/07/2012: What's the Sound of All Hands Clapping?

Ask for Help

“Are there any good enum gems that work with Rails 3.2?”

Try simple_enum. But watch out: by default it will take your array of string values and store the numeric indices in the database. To avoid having to migrate your existing data, you can pass it a hash:

as_enum :status, :pending => "pending", :active => "active"

Interesting Things

“And… clap.”

A fun thing to try at standup: get everyone to clap once simultaneously without counting down.

Comments
Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *