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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:00:15+00:00 2026-06-10T22:00:15+00:00

I have a ~ 6000 record set of data where each record has a

  • 0

I have a ~ 6000 record set of data where each record has a date field, and I’d like to segregate it by year in order to make it more manageable. I successfully generated a scaffold, then ran a migration, and put the records for the current year into the database. I then destroyed the scaffold in order to generate separate ones for each year. I tried naming the first one “2012Violation” (the scaffold that I successfully created and then destroyed was called simply “Violation”)), but I’m getting the NameError “wrong constant name 2012Violation.” I suspect that maybe rails doesn’t allow numbers in model names. If that is indeed what is causing this error, any suggestions for how to name a bunch of different scaffolds/models that will primarily differ based on what year the record is from?

Thanks!

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

    You can use numbers, but the first character cannot be a number.

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

Sidebar

Related Questions

I have a set of data such as the following: annual_exp<-as.data.frame(c(6000,4200,240001,750,20000,3470,10500,2400,2280,36000,3600,20000,2000,12000,1200,3000,4500,64000)) annual_exp<-as.data.frame(annual_exp) I want
I have this code: http://pastebin.com/Sd9WKZFr When i call something like rate(60, -6000, 120000) it
I have 6000 data of district, subdistrict. I need to represent this on dependent
In my case, I have a dictionary of about 6000 instantiated classes, where each
I have an xml file containing 6000 element like LastName and FirstName. I need
I have a .mat file like that: 727186 120.0000 92.0000 NaN NaN 37.6000 ...
I would like to search for keywords in a text, I have around 6000
I have a text that consists of more than 6000 lines but I have
I have the following list data. data = [['2009-01-20', 3000.0], ['2011-03-01', 6000.0], ['2008-12-15', 6000.0],
On one page I have something like this setcookie('user', 'value' ,6000, '/', 'mydomain.co.uk'); On

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.