Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8935977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:06:43+00:00 2026-06-15T10:06:43+00:00

I created a Heroku app which utilizes the gmaps4fails gem for one of the

  • 0

I created a Heroku app which utilizes the gmaps4fails gem for one of the application’s features.

When I tried to seed the database, I get

rake aborted!
undefined local variable or method 'acts_as_gmappable' for #<Class:0x00000004b5b928>

Any ideas how to fix this?

Everything works fine when testing locally.

Edit: Here’s my model code

    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
      ...

Migration:

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

Here’s the error from my terminal: http://i48.tinypic.com/zvoggg.png

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T10:06:44+00:00Added an answer on June 15, 2026 at 10:06 am

    Ugh .. put the gem under :development in Gemfile only. Including it in :production solved everything.

    I’ll be crying myself to sleep tonight. Some tears of happiness too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created an App on Heroku which works perfectly in a Web Browser.
I try to deploy my first app on heroku. I've created a gem manifest
Today, I created a copy of a working app, which runs perfectly on Heroku,
Today, I created a copy of a working app, which runs perfectly on Heroku,
I try to create a simple heroku app which clones a git repository, invokes
I created a sinatra based facebook app on Heroku by initiating it with the
I created sample rails app and deployed into heroku. Rails version is 3.1.3 Ruby
I've a Refinery app, works great locally. Created a bamboo stack on Heroku. When
Following the Heroku tutorial but I have already created a rather complex Django app
I am deploying a rails app to heroku which uses PostgreSQL as its back-end.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.