Forum: Ruby on Rails Jason King's inline_attachment probs

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
2b56c94654029f0b6e400f127b74921d?d=identicon&s=25 lunaclaire (Guest)
on 2009-03-10 06:56
(Received via mailing list)
I recently added the inline_attachment gem (
JasonKing/inline_attachment/tree/master) to enable the use of
image_tag in html emails.

It's ~kinda~ working, but I have a problem...

It works in that I do get emails sent with the images in them and it
all looked good... but, then I found that the rake task that runs off
a cron job to send nightly emails seems to result in bringing down my
main app with 503 errors.

It seems that where it chokes is the line in environment.rb that we're
directed to include:

config.gem 'inline_attachment'

Even though the gem appears to be installed correctly (indeed it seems
to be working since I do get those images in the emails), this is the
error that shows up in the trace from the rake task:

[deploy@blue current]$ rake tasks:send_updates RAILS_ENV=production --
(in /var/www/apps/redeye/releases/20090310053759)
** Invoke tasks:send_updates (first_time)
** Invoke environment (first_time)
** Execute environment
no such file to load -- inline_attachment
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'

<trace is edited here>

Missing these required gems:

You're running:
  ruby at /usr/bin/ruby
  rubygems 1.3.1 at /home/deploy/.gem/ruby/1.8, /usr/lib/ruby/gems/1.8

Run `rake gems:install` to install the missing gems.

Any ideas on why the gem seems to be working, but I get this error?

And I'm not sure why I end up with 503's after running the task and
have to restart the app... any ideas on that?
This topic is locked and can not be replied to.