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 8488225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:28:28+00:00 2026-06-10T21:28:28+00:00

I have the following form parsial that I’m using in activeadmin on in a

  • 0

I have the following form parsial that I’m using in activeadmin on in a rails project running on heroku. Locally I’m using sqlite and the form works great.

    <%= semantic_form_for [:admin, @instagram_tag_search] do |f| %>

       <%= f.inputs do %>
            <%= f.input :name %>
            <%= f.input :active, :as => :boolean  %>
       <% end %>

       <%= f.buttons %>
    <% end %>

On heroku I get the following error

2012-09-03T16:01:23+00:00 app[web.1]: ActionView::Template::Error (undefined method `active' for #<InstagramTagSearch:0x000000068893b0>):
2012-09-03T16:01:23+00:00 app[web.1]:     2:    
2012-09-03T16:01:23+00:00 app[web.1]:     4:            <%= f.input :name %>
2012-09-03T16:01:23+00:00 app[web.1]:     3:    <%= f.inputs do %>
2012-09-03T16:01:23+00:00 app[web.1]:     6:    <% end %>
2012-09-03T16:01:23+00:00 app[web.1]:     5:            <%= f.input :active, :as => :boolean  %>
2012-09-03T16:01:23+00:00 app[web.1]:     7: 
2012-09-03T16:01:23+00:00 app[web.1]:     8:    <%= f.buttons %>
2012-09-03T16:01:23+00:00 app[web.1]:   app/views/admin/instagram_tag_searches/_form.html.erb:5:in `block (2 levels) in _app_views_admin_instagram_tag_searches__form_html_erb___2113834955800283278_53730580'
2012-09-03T16:01:23+00:00 app[web.1]:   app/views/admin/instagram_tag_searches/_form.html.erb:3:in `block in _app_views_admin_instagram_tag_searches__form_html_erb___2113834955800283278_53730580'
2012-09-03T16:01:23+00:00 app[web.1]:   app/views/admin/instagram_tag_searches/_form.html.erb:1:in `_app_views_admin_instagram_tag_searches__form_html_erb___2113834955800283278_53730580'

It seems to me there is a difference in the way postgreSQL and sqlite handle the boolean / checkbox. Locally the value I am storing is a 1 or 0. I’m wondering what the simple fix is for this.

  • 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-10T21:28:30+00:00Added an answer on June 10, 2026 at 9:28 pm

    You should make sure you have run all the migrations on heroku. They normally aren’t run as part of a deploy/push.

    heroku rake db:migrate
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Rails 3.2.3 and I have the following form <%= form_for(@item, url: list_path,
I have the following form in a Struts2 JSP that contains some radio buttons.
I have the following form: @model Teesa.Models.SearchModel @using (Html.BeginForm(Index, Search, FormMethod.Get, new { id
I'm looking at some Java classes that have the following form: public abstract class
Using: C#, VS2008 I have the following main form class: [Main.cs] namespace Server {
I have the following code that, weirdly, works for a couple of seconds and
I have a partial that renders a select box using the following method: <%=
I have the following piece of code that emits all my javascript: @using SquishIt.Framework.Minifiers.JavaScript
I have the following form and controller. <%= form_tag do %> <div> <%= label_tag
I have the following form: echo $this->Form->input('Person.name'); echo $this->Form->input('Person.phone'); echo $this->Form->input('Person.email'); echo $this->Form->input('Message.0.plainmsg'); echo

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.