Hi all, I have an app using rails 2.2.2 and engines from master branch commit 5a2fb6db. I have an Emailer < ActionMailer::Base but I need to have some of the templates in the app and some others in an engines plugin. But as soon as I move some templates from app/views/emailer/ to vendor/plugins/my_plugin/app/views/emailer/, it starts failing with MissingTemplate. running rake test in engines says: Finished in 0.403761 seconds. 1) Failure: test_should_work(ExceptionNotificationCompatibilityTest) [./test/functional/exception_notification_compatibility_test.rb:25:in `test_should_work' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:60:in `__send__' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:60:in `run']: Exception raised: Class: <ActionView::MissingTemplate> Message: <"Missing template exception_notifier/exception_notification.erb in view path /home/diego/repos/git/activerain/activeagent-mainline-master/vendor/plugins/engines/test_app/app/views:/home/diego/repos/git/activerain/activeagent-mainline-master/vendor/plugins/engines/test_app/vendor/plugins/test_plugin_mailing/app/views:/home/diego/repos/git/activerain/activeagent-mainline-master/vendor/plugins/engines/test_app/vendor/plugins/test_assets/app/views:/home/diego/repos/git/activerain/activeagent-mainline-master/vendor/plugins/engines/test_app/vendor/plugins/beta_plugin/app/views:/home/diego/repos/git/activerain/activeagent-mainline-master/vendor/plugins/engines/test_app/vendor/plugins/alpha_plugin/app/views:/home/diego/repos/git/activerain/activeagent-mainline-master/vendor/plugins/engines/test_app/app/views:"> ---Backtrace--- /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/template.rb:95:in `find_full_path' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/template.rb:16:in `initialize' Is this working for anyone else? Is it just my setup or do we have a real bug here? If this is failing for someone else too, I'll be working on a patch. But I'd prefer to avoid it if it's only MY problem. Thanks, Diego
on 2008-12-30 00:33
on 2009-01-01 06:05
Exactly the same problem with only using ExceptionNotifier. Please let me know if you find a solution. Thanks, Eric Diego Algorta wrote: > Hi all, > > I have an app using rails 2.2.2 and engines from master branch commit > 5a2fb6db. > > I have an Emailer < ActionMailer::Base but I need to have some of the > templates in the app and some others in an engines plugin. But as soon > as I move some templates from app/views/emailer/ to > vendor/plugins/my_plugin/app/views/emailer/, it starts failing with > MissingTemplate. > > running rake test in engines says: > > Finished in 0.403761 seconds. > > 1) Failure: > test_should_work(ExceptionNotificationCompatibilityTest) > > [./test/functional/exception_notification_compatibility_test.rb:25:in > `test_should_work' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:60:in > `__send__' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:60:in > `run']: > Exception raised: > Class: <ActionView::MissingTemplate> > Message: <"Missing template
on 2009-01-06 10:50
Hi, This was caused by, I think, the 'official' plugin disappearing from visibility to script/plugin (the svn servers for rubyonrails were turned off). I've amended the test setup to use a direct URL to the plugin, and all should be good now. James
on 2009-01-06 17:16
Thanks James. Also, it looks like the latest version of ExceptionNotifier, which is available through github, fixes the problem. It's good to go. Eric James Adam wrote: > Hi, > > This was caused by, I think, the 'official' plugin disappearing from > visibility to script/plugin (the svn servers for rubyonrails were > turned off). I've amended the test setup to use a direct URL to the > plugin, and all should be good now. > > James
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.