pivotalexperimental / desert

Desert is a component framework for Rails that allows your plugins have a Rails app like directory structure, routes, migrations, and dependencies.
http://desert.rubyforge.org
186 stars 31 forks source link

Generator needs to be updated with new route filename "desert_routes.rb" #1

Closed nicholasjhenry closed 5 years ago

nicholasjhenry commented 15 years ago

script/generate desert_plugin blog create vendor/plugins/blog create vendor/plugins/blog/app create vendor/plugins/blog/app/controllers create vendor/plugins/blog/app/helpers create vendor/plugins/blog/app/models create vendor/plugins/blog/app/views create vendor/plugins/blog/config create vendor/plugins/blog/config/routes.rb No such file or directory - /Library/Ruby/Gems/1.8/gems/desert-0.5.0/generators/desert_plugin/templates/routes.rb

bcaccinolo commented 15 years ago

And the patch is here :)

diff --git a/generators/desert_plugin/desert_plugin_generator.rb b/generators/desert_plugin/desert_plugin_generator.rb index 73122ce..0ef4066 100644 --- a/generators/desert_plugin/desert_plugin_generator.rb +++ b/generators/desert_plugin/desert_plugin_generator.rb @@ -13,7 +13,7 @@ class DesertPluginGenerator < Rails::Generator::NamedBase m.directory "vendor/plugins/#{file_name}/app/views"

   m.directory "vendor/plugins/#{file_name}/config"