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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:47:38+00:00 2026-05-24T04:47:38+00:00

I am trying to add a model called Properties in Rails 3.1 So I

  • 0

I am trying to add a model called Properties in Rails 3.1 So I used created it using ryan bates nifty generator, although the model itself is very basic for now and only includes.

class Property < ActiveRecord::Base
  belongs_to :user
end

in my resources I have”

resources :properties

In one of my views I am simply trying to do the following:

<% for property in Property.all %>
 <p>description etc</p>
<% end %>

but it gives me the following error?!

undefined method `all' for Property:Module

Now it works if I replace Property.all with User.all or House.all but for some reason Property doesn’t work. I’m kinda new to rails and think it has something to do with pluralization but I can’t figure it out and its killing me. If anyone could please help that would be epic! Cheers

  • 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-05-24T04:47:39+00:00Added an answer on May 24, 2026 at 4:47 am

    You can use Inflections to extend default dictionary ( peoperty word is not included by default). The official API can help you with it

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

Sidebar

Related Questions

I'm trying to add a property called enabled? to a model with both a
I'm trying to add an object created from Entity Data Model classes. I have
I'm trying to add an EAV attribute called vendorping to the sales/order_shipment model. To
Im new to asp.net mvc. I'm trying add new model class but it got
I'm trying to add comments to a Post model class Comment < ActiveRecord::Base belongs_to
I'm trying to add a timestamp field to my model for indexing by Sunspot/Solr.
I'm trying to add a new ADO.Net Entity Data Model to an MVC project
I'm trying to load a model to add dirty data to the store, but
I'm trying to model my Java app engine objects through list properties for fast
I have a simple class called Applicant. I'm trying to add a template controller

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.