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

  • Home
  • SEARCH
  • 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 8789457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:24:37+00:00 2026-06-13T22:24:37+00:00

I found ActiveAdmin very useful for creating rather full-brown scaffold for our ActiveRecord models.

  • 0

I found ActiveAdmin very useful for creating rather full-brown scaffold for our ActiveRecord models. However, our models have float (and some decimal) columns and ActiveAdmin fails to create filters for them.

For example,

ActiveAdmin.register ForexRate do
  filter :rate, :as => :numeric
end

gives me NoMethodError, saying

undefined method `rate_gt' for #<MetaSearch::Searches::ForexRate:0x007fa4427bb018>

What am I doing wrong here? Thanks in advance!

P.S. I have confirmed the same filter worked for integer columns.

  • 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-13T22:24:38+00:00Added an answer on June 13, 2026 at 10:24 pm

    Looks like the issue was from my table having rate as REAL instead of FLOAT or DECIMAL(x,y). Changing it to either FLOAT or DECIMAL fixed the issue.

    It is also interesting to observe that, when the column is REAL, or other unrecognizable type, ActiveRecord::Base#inspect becomes:

    >> ForexRate
    => ForexRate(id: integer, created_at: timestamp, updated_at: timestamp, rate:  , from: string, to:string)
    

    (Notice the blank next to rate:)

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

Sidebar

Related Questions

FOUND THE ANSWER MYSELF, see below... I'd like to have a very simple user
Found related questions but not the exact variant so I am posting a very
Found this rather strange bug in IE8; element.style.top is limited to 1342177 pixels. Even
I have using awesome_nested_set with active_admin. But I found that active_admin can't find nested_set_options
My routes devise_for :users devise_for :admin_users, ActiveAdmin::Devise.config #I have also tried removing this for
I currently have a Rails 3.0.10 app and I made two models with simple
Found this very interesting code on total variation filter tvmfilter The additional functions this
Found a really nice code for Accordion nav and am trying implement on our
Found a fiddle on stack, and played with it a tad to suit our
I am developing a rails application in which I have two models User and

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.