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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:49:39+00:00 2026-05-22T17:49:39+00:00

i developed a project using Ruby on Rails and i having a huge problem

  • 0

i developed a project using Ruby on Rails and i having a huge problem after putting it on production environment.

All forms seems to being cached.

If i fill a whole form and send it to the server, the next time i access that form to create a new object, all fields will be already filled with previous data. This only happens on production environment, and i found that when i set this line to false, everything works fine:

config.cache_classes = true

Seems that this cache_Classes is causing the problem but i think that maybe another thing is causing the problem because cache_classes would only cache classes and not forms and i think that i may have a great performance loss with this config setted to false.

Please help!

  • 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-22T17:49:40+00:00Added an answer on May 22, 2026 at 5:49 pm

    I found out what was the problem. In some models i was using cattr_accessor and i find that everything in forms that was being cached was the same fields i used cattr_accessor. Classes would be cached so seems that cattr_accessor would be cached too. I just replaced it with attr_accessor and everything works fine.

    Thanks guys!

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

Sidebar

Related Questions

Hi all I've just started a new project using Visual Web Developer 2008 Express
I'm thinking about defining Restful urls for a new project (developed with Ruby On
We began a project using WebForms, and developed a somewhat complex portal system to
I am using the LinqToExcel project developed by MIT and hosted on Google Code
I have a Blackberry project developed in Eclipse using the Blackberry Plugin for Eclipse.
We developed a project in java using netbeans.In that we use bouncycastle (.java classes
I have recently developed a project which is written using Symfony 1.4 which I
I want to test my asp.net MVC project (being developed using Visual Studio) on
I have developed a project using MVC3 and Code first Entity Framework 4.0 as
We have a Java EE 5 project developed using Netbeans 6.7.1 with Glassfish v2.1.

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.