Note that there are some explanatory texts on larger screens.

plurals
  1. POundefined method `action_mailer' during Capistrano deployment
    primarykey
    data
    text
    <p>I'm having this error message come up during Capistrano deployment. It implies to me that something's wrong with Rails being installed or something? Rails is <em>not</em> currently installed on the server side, but it's in my Gemfile (and my Gemfile.lock), so I'm assuming it should be installed during the <code>bundle install</code> command that gets executed before this line.</p> <p>The actual command that's giving the error is:</p> <p><code>bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile</code></p> <p>I guess the problem is just that Rails is not being installed during the bundle install. Am I missing something?</p> <p>Thanks!</p> <p><strong>UPDATE 1:</strong> Rails appears to be installing correctly via the <code>bundle install</code> command. If I check out the directory <code>.../shared/bundle/ruby/1.9.1/gems</code>, I can see action mailer in there.</p> <p><strong>UPDATE 2:</strong> Running the command <code>rake assets:precompile</code> actually fails locally as well, so this doesn't have anything to do with Capistrano it would appear. Now I just have to figure out why the <code>config</code> object doesn't know anything about action mailer?</p> <p><strong>UPDATE 3:</strong> Hot on the trail. It looks like my installed version of actionmailer is 0.6.1 (?!), meanwhile all the rest of my Rails stuff is up at 3.2.9. <code>bundle update</code> refuses to update actionmailer past this version. I'm going to remove all of my gems and start fresh.</p> <p><strong>UPDATE 4:</strong> Deleted my entire gemset using <code>rvm gemset empty</code>. Then tried to run bundle again, and <strong>again</strong> it tries to get actionmailer 0.6.1. I think something is screwed up with bundler or something...</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload