Mange / roadie-rails

Making HTML emails comfortable for the Rails rockstars
MIT License
363 stars 65 forks source link

Roadie::Rails::Automatic not found #2

Closed martinstannard closed 10 years ago

martinstannard commented 10 years ago

I've added roadie-rails to a project:

gem 'roadie-rails', :github => 'Mange/roadie-rails', :branch => 'master'

added:

class UserMailer < ActionMailer::Base

  include Roadie::Rails::Automatic

and when trying to run my tests I'm seeing:

/app/mailers/user_mailer.rb:3:in `<class:UserMailer>': uninitialized constant Roadie::Rails::Automatic (NameError)
    from /Users/martin/code/brightseeds/app/mailers/user_mailer.rb:1:in `<top (required)>'
    from /Users/martin/code/brightseeds/test/mailers/user_mailer_test.rb:6:in `<class:UserMailerTest>'
    from /Users/martin/code/brightseeds/test/mailers/user_mailer_test.rb:4:in `<top (required)>'

Am I missing something?

martinstannard commented 10 years ago

Ah, I guess README driven development is why it's not working?

Mange commented 10 years ago

Yeah. I have not implemented that class. I recommend you just install the latest version of Roadie 2 and then watch the Railscast about it to learn how to use it.

I'll try to finish this gem ASAP in the meantime.

Den onsdagen den 20:e november 2013 skrev Martin Stannard:

Ah, I guess README driven development is why it's not working?

— Reply to this email directly or view it on GitHubhttps://github.com/Mange/roadie-rails/issues/2#issuecomment-28861383 .

martinstannard commented 10 years ago

Thanks, I'll give Roadie 2 a try.