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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:03:46+00:00 2026-06-16T03:03:46+00:00

I have some custom methods defined in my task model. I’m sending them into

  • 0

I have some custom methods defined in my task model. I’m sending them into my backbone application like so:

Planner.initialize({ tasks: #{raw @tasks.to_json(:methods => [:timeframe, :timeframe_title, :timeframe_months]) } });

However, after I added that, ActiveRecord thinks it’s a field in the database, and I’m getting the following error in the console:

Completed 500 Internal Server Error in 4ms

ActiveRecord::UnknownAttributeError (unknown attribute: timeframe):
  app/controllers/tasks_controller.rb:118:in `block in update'
  app/controllers/tasks_controller.rb:117:in `update'
  • 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-16T03:03:47+00:00Added an answer on June 16, 2026 at 3:03 am

    Thanks to Chad Pytel at ThoughtBot, I found that I had to remove these three methods from my attr_accessible line in my rails model.

    Highly recommend the book “Backbone.js on Rails” by Thoughtbot, which comes with chat support for problems like these.

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

Sidebar

Related Questions

I have some custom classes/modules defined under /app/lib . I have a Rake task,
I have a web service method where I would like to throw some custom
I have authored some custom classes that I would like to create using XAML:
I have a couple of beans defined with java @Configuration . Some of them
I'm currently learning Django and some of my models have custom methods to get
I have an interface that defines some methods I would like certain classes to
I have some custom type: [RdfSerializable] public class Item { [RdfProperty(true)] public string Name
I have some custom logic that needs to be executed every single time a
I have a document type of info I also have some custom properites. infoTitle
I have some existing custom Excel workbooks/applications with code-behind C#, which work fine. They

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.