Map from_plugin routes in Rails 3

I am currently running my application on Rails 2.3.8 and decided to port it to Rails 3. I have a route to routes.rb.

ActionController::Routing::Routes.draw do |map|
  map.from_plugin :substruct
end

I could not find an equivalent format in Rails 3. How do I change this?

+5
source share
1 answer

According to Rails 2.3, map.from_plugin is deprecated since it automatically handles mappings for new plugins.

As glongman said in a comment on your questions, please, the Basic Substruct App , which is a basic demo application that allows a new substructure plug for Rails to work with.

+1
source

All Articles