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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:20:57+00:00 2026-05-22T12:20:57+00:00

In my Rails 3 application users can write messages/posts in forum. I would like

  • 0

In my Rails 3 application users can write messages/posts in forum.

I would like to display to users “Top Writes” table, something like:

Alex - 14% (i.e. 14% of forum's content was written by Alex)
Greg - 13%
Natalie - 10%
Rachel - 8%
...
  1. Would you store the number of characters (probably excluding punctuation) in each message in a database along with other message details (and update it when message edited) ?

  2. Would you store the number of characters that each user wrote along with other user details (and update this number once user adds / deletes / updates a message) ?

  3. Would you store the total number of characters in the database (i.e. the sum of all numbers from 2. ?

  4. Would you store the percentages that are going to be displayed (and update them accordingly) ?

  • 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-22T12:20:58+00:00Added an answer on May 22, 2026 at 12:20 pm

    I would focus on a metric that rewards good content, not just content. Stack Overflow is a good example of this — you get rewarded when your peers value your content.

    For your specific question:

    1. Add columns on each Message: content-length
    2. Add a column on each User: total-content-length
    3. When you save a new message, recaculate total-content-length for the user (sum of all message.content-length)

    The percentage based table at that point is fairly simple

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

Sidebar

Related Questions

I have a rails application running on a Linux server. I would like to
I have recently designed a web application that I would like to write in
I have a standard Rails application. When a Tip is created, I would like
I've got a rails application where users have to log in. Therefore in order
we have a lot of users on a VBulletin forum. now i want write
I have a rails application where each user has a separate database. (taking Joel
I want to log user's actions in my Ruby on Rails application. So far,
I have a rails application which is still showing the cachebusting numeric string at
After our Ruby on Rails application has run for a while, it starts throwing
I created a Rails application normally. Then created the scaffold for an event class.

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.