You can just do
Grounddetail.where(featured_ground: true)
Which gives you the expected records.
More Related Contents:
- How to get a random number in Ruby
- How to solve error “Missing `secret_key_base` for ‘production’ environment” (Rails 4.1)
- How do I install sqlite3 for Ruby on Windows?
- Rails 4: List of available datatypes
- Disable ActiveRecord for Rails 4
- Rails 4 Authenticity Token
- rescue_from ActionController::RoutingError in Rails 4
- Rails 4: before_filter vs. before_action
- Saving enum from select in Rails 4.1
- Rails update_attributes without save?
- HEROKU – cannot run git push heroku master [duplicate]
- GroupingError: ERROR: column must appear in the GROUP BY clause or be used in an aggregate function
- ERROR: Failed to build gem native extension on Mavericks
- Rails 4: assets not loading in production
- “bin/rails: No such file or directory” w/ Ruby 2 & Rails 4 on Heroku
- Rails I18n validation deprecation warning
- Rails 4.0 Strong Parameters nested attributes with a key that points to a hash
- Why can’t I install the SQLite gem?
- strong parameters permit all attributes for nested attributes
- sqlite3 gem fails to install
- Is the server running on host “localhost” (::1) and accepting TCP/IP connections on port 5432?
- Generic Ruby solution for SQLite3 “LIKE” or PostgreSQL “ILIKE”?
- Why can’t I install Rails on Lion using RVM?
- POST json to rails server
- how to read a User uploaded file, without saving it to the database
- How to check a checkbox in capybara?
- Ruby on Rails 3 howto make ‘OR’ condition
- Adding foreign key to a rails model
- Rails catch-all/globbing routes
- using has_many :through and build