アプリケーションの機能の 1 つに gmaps4fails gem を利用する Heroku アプリを作成しました。
データベースをシードしようとすると、
rake aborted!
undefined local variable or method 'acts_as_gmappable' for #<Class:0x00000004b5b928>
これを修正する方法はありますか?
ローカルでテストすると、すべて正常に動作します。
編集:これが私のモデルコードです
class Hall < ActiveRecord::Base
has_many :hall_features
has_many :green_features, :through => :hall_features
has_many :settings, :through => :pinned_halls
belongs_to :operational_unit
acts_as_gmappable
...
移行:
class CreateHalls < ActiveRecord::Migration
def up
create_table 'halls' do |t|
t.string 'name'
t.text 'background'
t.text 'energy_info'
t.float 'latitude'
t.float 'longitude'
t.boolean 'gmaps'
t.timestamps
end
end
def down
drop_table 'halls' # deletes the whole table and all its data!
end
end
これが私の端末からのエラーです: http://i48.tinypic.com/zvoggg.png