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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:45:18+00:00 2026-06-13T11:45:18+00:00

New to Rails and having a hard time envisioning how to proceed with a

  • 0

New to Rails and having a hard time envisioning how to proceed with a project. I would like to create a simple page where users:

a) select a “project”, sends to project page
b) from project page, can repeatedly query an API and get results

As I’m still wrapping my head around scaffolding and creating models and controllers, I’m wondering if the following makes sense:

rails generate Project person:string
rails generate API_call title:string response:text

I suppose my question is then, how do I link entries in the API_call table to specific projects? Is this the “references” option?

many thanks in advance…

  • 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-13T11:45:19+00:00Added an answer on June 13, 2026 at 11:45 am

    Your scaffolding command is not correct. For generating complete resource:

    rails g scaffold Project person:string
    

    This will generate model, controller, migrations, views etc.

    For generating just a model:

    rails g model ApiCall title:string response:text
    

    To list other generators, run

    rails g
    

    Note: you can use either g or generator

    For relating objects you need to use Associations. Please check this link for getting basic idea http://guides.rubyonrails.org/association_basics.html. If you want to work with it, there is no alternative to study the doc.

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

Sidebar

Related Questions

I'm new to Rails and having a hard time figuring out how to create
I'm new to rails and I'm working on a simple app where users create
I am new to rails, and Im having hard time writing a query using
I'm new to rails and I'm having some trouble in the console. I'd like
I having a hard time to consume this webservice https://www.arello.com/webservice/verify.cfc?wsdl in my rails application.
I'm having hard time debugging the flow of the code on Ruby on Rails.
new to rails so bear with me. What I would like to do, is
What would be the best way to create a new rails app based on
I'm new to rails and like many I seem to be having challenges figuring
I am new to rails and I having trouble using cucumber to run my

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.