Hi Alpha Blue
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 Blue <[email protected]>
wrote:
> 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
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---