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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:41:34+00:00 2026-06-09T10:41:34+00:00

My friend has setting up a database for a Ragnarok Online server, and he

  • 0

My friend has setting up a database for a Ragnarok Online server, and he wants me to code the relative website, which is going to use some of that data (and obviously, i’ll have to add tables for the news system, website accounts, etc). Since i’m learning RoR i was going to do it that way.
I have a few “best practice” questions related to this :
Should I create a different database for the website, since it’s going to have its particular data alongside the game data ? (i already have a few clues to link multiple databases with Rails, but that seems too much of a hassle for what it is).
If not, do i have to create Model/Controller for each of the tables composing the database, despite the fact that i’m not going to use 90% of it ? Or just the ones that i need ?

An example of this problem : the game database has its own “user” table, but i have to have another “user” table for the website, and do some Joins between those two. So, what’s the best practice here ?

  • 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-09T10:41:36+00:00Added an answer on June 9, 2026 at 10:41 am

    Uhm, best practice is not making your own user table. This will cause you much pain. Best practice? Use an API. Expose the game’s database in some way to your website, and fetch that info with external requests in your web application.

    The reason why making a second user table is a hassle:

    1) You’ll constantly have to update it, pulling data from the original
    to keep it up-to-date.

    And I mean furthermore, you’re gonna have to create a CRON job or something pulling data from that original table to keep it up to date. Yuck. Also what if that CRON job makes a mistake? (It will)

    2) It’s almost inevitable that there will be inconsistencies if two
    separate tables are maintained. Are you sure your web application is
    really fail-proof?

    Update:

    What you’re gonna need is essentially a second Rails application that acts as a REST API for that database. For a good idea of what REST is, I’d read through this to get you started: http://tomayko.com/writings/rest-to-my-wife

    Once you have a good understanding of that, start making your app, and test if it’s working by using tools like cURL to send requests to your API.

    Once you have that done, I’d take a look into the Ruby rest-client gem like Nobita mentioned. This is what you’re going to use from your web application to request information from your API application.

    Just let me note, I think this would be a terrible first Rails project, unless you’re already really well versed in other web development tools, preferably MVC frameworks.

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

Sidebar

Related Questions

my friend has made a really helpful class library which I use all the
A friend has developed a corporate website which has a mailto link as the
I've been working on some C++ code that a friend has written and I
My friend has a website built on wordpress and the developer has left the
background: My friend has a minecraft server with a white list. The community for
My friend is testing my application which uses the SD card to store some
A friend has asked me to look into developing a custom system for his
A friend has created a few tables for me and used nvarchar(max) on around
One of my friend has been asked with a question Retrieving the max top
A friend of mine has inherited an old Joomla 1.0.x site, that amongst other

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.