# Getting Error with a plugin in Production

**URL:** <https://www.ruby-forum.com/t/getting-error-with-a-plugin-in-production/173622>\
**Category:** Rails\
**Created:** [August 12, 2009, 5:31am UTC](https://www.ruby-forum.com/t/getting-error-with-a-plugin-in-production/173622 "2009-08-12T05:31:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elricstorm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/da6949/32.png) [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Post date:** [August 12, 2009, 5:31am UTC](https://www.ruby-forum.com/t/getting-error-with-a-plugin-in-production/173622/1 "2009-08-12T05:31:36Z")

</div>

Error message:  
undefined method `acts\_as\_textiled’ for #Class:0x7f057c4dc988

I receive this error from passenger. I am using  
capistrano/passenger/apache and initially when I cap deployed the  
plugins were missing. So, I added the plugins and did a cap deploy for  
migrations and that worked. Now, however, I get this message and am  
unsure what’s going on.

In my environment.rb file I have:

RAILS\_GEM\_VERSION = ‘2.3.3’ unless defined? RAILS\_GEM\_VERSION

require File.join(File.dirname( **FILE** ), ‘boot’)

require “rubygems”  
require “will\_paginate”

Rails::Initializer.run do |config|  
config.plugins = [:all]

%w(observers sweepers mailers).each do |dir|  
config.load\_paths \<\< “#{RAILS\_ROOT}/app/#{dir}”  
end

config.action\_controller.page\_cache\_directory = RAILS\_ROOT +  
“/public/cache/”

config.active\_record.observers = :user\_observer

end

---

<div class="post-metadata">

**Author:** ![elricstorm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/da6949/32.png) [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Post date:** [August 12, 2009, 8:12am UTC](https://www.ruby-forum.com/t/getting-error-with-a-plugin-in-production/173622/2 "2009-08-12T08:12:22Z")

</div>

Hi Alpha B.

I can’t tell you if it’s going to solve your problem, but your  
environment.rb seems pretty outdated. You don’t need to tell Rails to  
load all plugins; it’ll do that automatically. Just a side note, Rails  
has got built-in gem dependency management since 2.2 (I think), using  
it will allow you to run rake gems:install on your server so you don’t  
have to install the gems manually.

RAILS\_GEM\_VERSION = ‘2.3.3’ unless defined? RAILS\_GEM\_VERSION

require File.join(File.dirname( **FILE** ), ‘boot’)

Rails::Initializer.run do |config|  
config.gem ‘mislav-will\_paginate’, :lib =\> ‘will\_paginate’

%w(observers sweepers mailers).each do |dir|  
config.load\_paths \<\< “#{RAILS\_ROOT}/app/#{dir}”  
end

config.action\_controller.page\_cache\_directory = RAILS\_ROOT +  
“/public/cache/”

config.active\_record.observers = :user\_observer

end

–  
dato  
[http://twitter.com/\_dato](http://twitter.com/_dato)

On Aug 12, 5:31 am, Alpha B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![elricstorm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/da6949/32.png) [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Post date:** [August 12, 2009, 9:00am UTC](https://www.ruby-forum.com/t/getting-error-with-a-plugin-in-production/173622/3 "2009-08-12T09:00:22Z")

</div>

You said that there was “stuff” missing after you did the cap deploy?  
Are you using git or svn? Maybe you need to try to checkout the  
project into a new directory and start the server locally to see if  
everything is checked-out correctly. When you do a cap deploy and  
plugins are missing you need to check the source repo…
