-1

This is my current situation: ShoeDeal/

  • app/controller/

    • shoe_controller.rb
  • app/model/

    • customer.rb
    • item.rb
    • order.rb
  • app/views/shoe/

    • index.html.erb
  • db/migrate/

    • create_customers.rb
    • create_items.rb
    • create_orders.rb

I’m making a simple ShoeDeals App where your can select a pair of shoes that you want to purchase and add to a shopping cart. i just kinda found out that ruby has a CRUD terminal command ( rails generate scaffold ) but i already started manually creating the files list. Can i still run this code to finish where i left off?

Checkk
  • 91
  • 1
  • 1
  • 8

1 Answers1

0

Generating scaffold files for an existing model/controller etc will create the standard files where they don't exists and skip the ones that do. You can temporarily rename your existing files and inspect/merge the generated code into your existing classes.

errata
  • 23,596
  • 2
  • 22
  • 32