Skip to content

Instantly share code, notes, and snippets.

@seak0503
Last active August 29, 2015 14:15
Show Gist options
  • Save seak0503/4a9f25dc2cf45ab425a9 to your computer and use it in GitHub Desktop.
Save seak0503/4a9f25dc2cf45ab425a9 to your computer and use it in GitHub Desktop.
Railsのcontrollerとmodelの削除の仕方

Railsのcontrollerとmodelの削除の仕方

controllerの削除

controller作成:

$ rails generate controller FooBars baz quux

controller削除:

$ rails destroy controller FooBars baz quux

modelの削除

model作成:

$ rails generate model Foo bar:string baz:integer

model削除:

$ rails destroy model Foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment