Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete model and scaffolding in RoR?

How can I delete an existing model and scaffolding in ruby on rails 3?

Can I just nuke the folders?

like image 354
femi Avatar asked Apr 01 '11 13:04

femi


People also ask

What is scaffolding in Ruby on Rails?

Rails scaffolding is a quick way to generate some of the major pieces of an application. If you want to create the models, views, and controllers for a new resource in a single operation, scaffolding is the tool for the job.

What is scaffold command?

Scaffolding is a quick way to produce some major pieces of an application. For auto generating a set of models, views and controllers for a new resource in a single operation, scaffolding is used.

What is a rails migration?

A Rails migration is a tool for changing an application's database schema. Instead of managing SQL scripts, you define database changes in a domain-specific language (DSL). The code is database-independent, so you can easily move your app to a new platform.


1 Answers

rails destroy scaffold MyScaffold
like image 123
fl00r Avatar answered Sep 20 '22 20:09

fl00r