Skip to content

Commit 7ca2d48

Browse files
committed
Adds example of controller creation
1 parent 0d8043e commit 7ca2d48

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Tutorial_Docs/controllerCRUD.MD

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Controllers and CRUD Operations
2+
To create a controller use rails generate. You can also specify a list of
3+
actions to add to the controller at time of creation.
4+
```
5+
rails generate controller subjects index show new edit delete
6+
```
7+
This will create the corresponding views for each of those actions.

0 commit comments

Comments
 (0)