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

  • Home
  • SEARCH
  • 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 8154231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:16:23+00:00 2026-06-06T16:16:23+00:00

I am creating a user-boards applicationin rails in which a user owns any number

  • 0

I am creating a user-boards applicationin rails in which a user owns any number of boards and can rate the boards.I want to install acts_as_rated plugin in my rails application. Since this is not available as a gem i have used following command to install it as a plugin:

rails plugin install svn://rubyforge.org/var/svn/acts-as-rated/trunk/acts_as_rated

This command installs all required plugin files in the vendor directory. Next I include the following code in my Boards model

class Board < ActiveRecord::Base
  acts_as_rated
end

Next i restart my console and run the following commands

u=User.first
 => #<User id: 1, first_name: "taroon", created_at: "2012-03-26 09:18:20", updated_at: "2012-03-26 09:18:20">

b=Board.first
 => #<Board id: 1, name: "boards_1", created_at: "2012-03-26 09:19:39", updated_at: "2012-03-26 09:19:39"> 

b.rate 5, u

It gives me the following error

ActiveRecord::StatementInvalid: Could not find table 'ratings'
from /home/swati/.rvm/gems/ruby-1.9.2-p318/gems/activerecord-3.0.10/lib/active_record/connection_adapters/sqlite_adapter.rb:295:in `table_structure'
from /home/swati/.rvm/gems/ruby-1.9.2-p318/gems/activerecord-3.0.10/lib/active_record/connection_adapters/sqlite_adapter.rb:186:in `columns'
from /home/swati/.rvm/gems/ruby-1.9.2-p318/gems/activerecord-3.0.10/lib/active_record/base.rb:685:in `columns'
from /home/swati/.rvm/gems/ruby-1.9.2-p318/gems/activerecord-3.0.10/lib/active_record/base.rb:698:in `column_names'
from /home/swati/projects/test_projects/dummy_project/vendor/plugins/acts_as_rated/lib/acts_as_rated.rb:193:in `rate'
from (irb):6
from /home/swati/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.0.10/lib/rails/commands/console.rb:44:in `start'
from /home/swati/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.0.10/lib/rails/commands/console.rb:8:in `start'
from /home/swati/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.0.10/lib/rails/commands.rb:23:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

I checked out the migartion but no migration for rating tables was created. Neither I have an idea of the fields in this table.

Can anyone please suggest me a solution for this problem..

  • 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-06T16:16:25+00:00Added an answer on June 6, 2026 at 4:16 pm

    The README of act_as_rated plugin says that you need to do your own migration based on this file: test/fixtures/migrations/001_add_rating_tables.rb.

    Quote from the README:

    The file test/fixtures/migrations/001_add_rating_tables.rb
    shows examples of all types of migration options.

    See also the detailed documentation for the acts_as_rated
    method on how to declare it, and the rest of the documentation for how
    to generate the migration columns/files and how to use it.

    So download and extract your module from here, then you can find the corresponding file and you can do your own migration.

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

Sidebar

Related Questions

I am creating an user registration form using jsp,in which there is an option
From the SQL::Statement::Functions documentation: Creating User-Defined Functions ... More complex functions can make use
I want to know what is the safiest chmode for creating user folders and
I want to create a hash that combines the creating user's user_id + the
I'm trying to create a program where the user enter a string which can
Which interface tool would you recommend I use for creating user interfaces for GtkSharp
I'm building a django project, and creating user profile app. But I want user
Is there some kind of tool for creating user interfaces using ATL for C/C++?
I'm creating a User Interface using PyQt4 module . the problem i'am facing is
I'm creating a user form that requires the functionality for people to come back

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.