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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:37:18+00:00 2026-06-01T07:37:18+00:00

I’m new in the world of Ruby on Rails. I have some problems to

  • 0

I’m new in the world of Ruby on Rails. I have some problems to solve before start to build a store-like web application.
I’m following instructions written in the book “Agile Web Development with Rails” so I decided to use sqlite too…

…but I have already represented the scenario via ER Diagrams and now I don’t know how to bring it on rails.

In the early chapters of the book, it uses the scaffold command to create the table “Product”. But this command creates model, view, controller and test for every table I want to represent.

Is it the right way to proceed? Or is there a way to build all my tables before I start to create mvc I need?

  • 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-01T07:37:20+00:00Added an answer on June 1, 2026 at 7:37 am

    Try the Guides to Ruby On Rails:

    http://guides.rubyonrails.org/getting_started.html

    It’s generally easier to understand (in my opinion) than the Agile book.

    The easiest way to create your tables is by using Rails migrations.

    The easiest way to create migrations with the related models, views, and controllers is:

    rails generate scaffold Product
    

    That command will print what it’s doing. Take a look in those files.

    If you have many tables, yes the typical way is to generate many scaffolds, for example:

    rails generate scaffold User
    rails generate scaffold Product
    rails generate scaffold Company
    rails generate scaffold Invoice
    ...
    

    In your comment you ask about a type_of_product table. For tables like these, yes it’s fine to skip the scaffold (for example because you don’t need a controller) and instead just generate a migration:

    rails generate migration TypeOfProduct
    

    Heads up that Rails does odd things with the word “type”. When I did a table like that, I found it easier to start with the main word then use the word “kind” like this:

    rails generate migration ProductKind
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
We're building an app, our first using Rails 3, and we're having to build
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has

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.