Close and Go BackBack to Viget

Rails 3 Generators: Scaffolding

Ben Scofield
Ben Scofield, Technology Director, March 02, 2010 5

Scaffolding in Rails has always been a little controversial. Originally, it was responsible for a lot of Rails’s wow factor – DHH’s blog in fifteen minutes was built on scaffolding. Over time, however, it became less clear whether it was supposed to be used for production code, or if it was intended to educate new Rails developers on best practices.

After a few discussions through various channels, the core team eventually settled on the latter – scaffolding was supposed to be educational, illustrating the best practices around RESTful controllers and other Rails conventions. Even with that goal, however, there’s still been some difficulty around updating the scaffolded views to teach people how best to, for instance, split files into partials.

Continue reading "Rails 3 Generators: Scaffolding"

Rails 3 Generators: Say Hello!

Ben Scofield
Ben Scofield, Technology Director, February 25, 2010 2

Still with me after the last batch of ported generators? Well, I’ve got something new for you this time – and by new, I mean unseen by Rails 2.3.5-looking eyes. That’s right, it’s time to take a look at the generators that make their first appearance in Rails 3!

Continue reading "Rails 3 Generators: Say Hello!"

Rails 3 Generators: The Unusuals (part 2)

Ben Scofield
Ben Scofield, Technology Director, February 24, 2010 0

After the first two installments of the Rails 3 generator tour, you may be asking yourself, “Hey, what about session_migration? Or performance_test? I use that one all the time!” Well, wait no longer! Here are four more of the generators that have been held over from Rails 2.

Continue reading "Rails 3 Generators: The Unusuals (part 2)"

Google Analytics API with Ruby and Garb: Making it Even Easier

Tony Pitale
Tony Pitale, Web Developer, February 22, 2010 2

Garb is now at 0.7.0! We've added many new features to make accessing Google Analytics even easier. Recently added features include: OAuth support, multiple user sessions, reporting extensions on profiles, and a library of basic classes to get new users running quickly (only three lines of code!). Read on to see how to take advantage of these new features.

Continue reading "Google Analytics API with Ruby and Garb: Making it Even Easier"

Rails 3 Generators: The Unusuals (part 1)

Ben Scofield
Ben Scofield, Technology Director, February 19, 2010 1

OK, we’ve seen how the most common generators have changed (some more than others) in Rails 3. Let’s look at a few more that’ve been around for a while, but haven’t been used quite as much.

Continue reading "Rails 3 Generators: The Unusuals (part 1)"

We're the Developers

at Viget Labs. We write about web development trends, tips, best practices, industry events, and our projects — all with an emphasis on Ruby on Rails.

Upcoming Events

SXSW Interactive 2010 - March 12 - 16
Join Brian Talbot, Ben Scofield, and Doug Avery from Viget Labs at the best interactive conference of the year.

Recent Comments

Ah, that’s neat.  I hadn’t heard of Typus before.  I played around with Hobo and some others a couple of years ago but they all fell flat with me for some reason.

Contact Us

Have any questions, comments, ideas, or secrets to share? Let us know.


What color is the sky?

Sorry, you need to have Javascript enabled to use this form. (Don't blame us, blame the spammers!) If you'd like to contact us, please visit our Contact page.