views:

45

answers:

2

Hi there,

I'm following http://edgeguides.rubyonrails.org/plugins.html and at chapter 8, I'm told to add: ActionController::Routing::RouteSet::Mapper.send :include, Yaffle::Routing::MapperExtensions

In order to add the routes of my plugin in my Rails app...

Unfortunately, ActionController::Routing is deprecated in Rails 3 and I don't find anything to replace it in ActionDispatch,

What should I use instead?

Thanks in advance,

Ben

A: 

I have the very same problem, but found nice blog article describing how to write rails 3 plugin, including routes..

http://www.themodestrubyist.com/2010/03/05/rails-3-plugins---part-2---writing-an-engine/

NoICE
Hi NoICE,Thanks for your answer!The article you sent me is good but I suggest one other far better :) :http://keithschacht.com/creating-a-rails-3-engine-plugin-gem/You'll find there the skeleton of a full (code downloadable from github).
apnea.diving.deep
A: 

Use Keith Schacht code ! :)

apnea.diving.deep