-
Notifications
You must be signed in to change notification settings - Fork 0
/
cookingBook_cmd.txt
42 lines (28 loc) · 1.02 KB
/
cookingBook_cmd.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
1. Creating recipe
-----------------------------------
rails g scaffold Recipe title:string description:text user:references
2. Creating Ingredients model
-------------------------------
rails g model Ingredent name:string recipe:belongs_to
or,
rails g model Ingredent name:string recipe:references
3. Creating Direction model
--------------------------------
rails g model Direction step:text recipe:belongs_to
or,
rails g model Direction step:text recipe:references
4. Creating Tag Model
------------------------------------
rails g model Tag name:string recipe:references
5. Creating Slider
-------------------------------------
rails g scaffold Slider name:string
6. Install paperclip with slider
--------------------------------------
rails g paperclip Slider image
7. Making a model for recipeslider
---------------------------------------------
rails g model photo recipe:references
8. Add paperclip with Photo model (for nested paperclip)
---------------------------------------------------
rails g paperclip Photo banner