Open adamwong246 opened 10 years ago
@adamwong246 what's the name of your mailer? README instructions are assuming it's MailPreview
, if it's something different then you have to change the name of the class you're mounting in routes.
as @wojtekmach mentioned, you should set the router -explicitely- as follows:
mount YourMailPreviewClassName, :at => 'your_endpoint'
(this should be closed as it's not a mail_view
issue.)
I've got the same error. Fixed by specifying to load the lib/
path in config/application.rb
:
# ...
config.autoload_paths += %W(#{config.root}/lib)
# ...
Not sure why though. The gems in the gemfile and I copy-pasted the mounting call into routes.
ruby is at 2.0.0 and rails is at 3.2.16