Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

map from_plugin routes in Rails 3

Currently I am running my app on Rails 2.3.8 and decided to move it to Rails 3. I have a route in routes.rb.

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

I could not find equivalent format in Rails 3. How do I modify that ?

like image 349
PAB Avatar asked Nov 15 '22 04:11

PAB


1 Answers

As of Rails 2.3 map.from_plugin is deprecated as it auto handles the mappings for newer plugins.

As glongman said in the comment to your questions please check the Basic Substruct App which is a basic demo application to allow the new Substruct Plugin fork for Rails to work.

like image 58
laleshii Avatar answered Dec 09 '22 20:12

laleshii