Migrating Plugins and Gems to Rails 3

Clinton N. Dreisbach (Relevance, Inc.)
Location: Ballroom I Level:
Average rating: ***..
(3.91, 64 ratings)

Rails 3 is full of great new features for plugin authors: a stable API, more modularity, and the ability to hook into its generators. To add these features, though, Rails had to change a lot, breaking compatibility with many current plugins. We’re going to walk together on what the major changes are and migrate some favorite plugins to be work well with and take advantage of Rails 3.

Specifically, we’re going to cover:

  • How the new generators work and how to migrate old generators to work with them.
  • How to take advantage of ActiveModel’s standard API.
  • How the new Railties system works.
  • Cleaning up any output from plugins that runs afoul of the default escaping in Rails 3’s views.

I’m going to use a popular plugin that doesn’t work with Rails 3 – the specific one hasn’t been decided yet, but Formtastic and Shoulda are high on the list – and migrate it, using the source code from it as example code throughout the presentation.

Photo of Clinton N. Dreisbach

Clinton N. Dreisbach

Relevance, Inc.

Clinton R. Nixon is a development director with Viget Labs in North Carolina, and is an active open source programmer. He has created several plugins for Ruby on Rails and has contributed to projects like Radiant, Ramaze, and Homebrew.

Comments on this page are now closed.


Guilherme Silveira
06/10/2010 10:28am EDT

we are migrating restfulie to rails3, it will help us

Jonathan Rochkind
06/10/2010 7:44am EDT

Great session, thanks.

co-presented by Ruby Central, Inc. O'Reilly
  • Engine Yard
  • Heroku
  • 8th Light
  • Blue Box Group
  • InfoEther
  • JetBrains
  • New Relic
  • Open Hosting
  • Rhomobile
  • WyeWorks
  • Linux Pro Magazine
  • Chargify

Sponsorship Opportunities

For information on exhibition and sponsorship opportunities at RailsConf, contact Yvonne Romaine at yromaine@oreilly.com.

Download the RailsConf Sponsor/Exhibitor Prospectus

Media Partner Opportunities

For information on trade opportunities with O'Reilly conferences or contact mediapartners@ oreilly.com

Program Ideas

Send us your suggestions for speakers, topics, and activities to rails-idea@oreilly.com.

Press and Media

For media-related inquiries, contact Maureen Jennings at maureen@oreilly.com.

RailsConf Newsletter

To stay abreast of conference news please sign up for the RailsConf newsletter (login required)

Contact Us

View a complete list of RailsConf 2010 contacts.