Getting Error with a plugin in Production

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

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

On Aug 12, 5:31 am, Alpha B. [email protected]

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…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs