On Jun 7, 9:08 pm, Frederick Cheung <frederick.che...@gmail.com>
wrote:
> On Jun 7, 8:18 pm, Alastair <m...@alastairmoore.com> wrote:
>
> > Hello guys,
>
> > I'm having a problem with running an application in production. The
> > error I'm getting is as follows:
>
> Random guess: is there is a line at the bottom of environment.rb that
> requires whatever it is that provides the has_attachment method?
>

Hi Fred,

Thanks for your reply!

As regards to the line in environment.rb, there isn't. The
has_attachment, in this case, is the attachment_fu plugin. It works
fine on my local machine in both development and production modes. It
works on the remote server in development mode (with ./script/server)
but is literally just failing in production mode on the remote server
with ./script/server -e production. I completely fail to see what
could be causing this. Now copying the development.rb file over
production.rb on the remote server allows the application to run in
production mode so obviously there's something in the production.rb
environment file that is causing this error.

Alastair
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to