You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If everything looks right you should see your directory identical as below. <br><br>
163
163
<ahref="http://tinypic.com?ref=3589c11"target="_blank"><imgsrc="http://i67.tinypic.com/3589c11.png"height="280"width="280"border="0"alt="Image and video hosting by TinyPic"></a>
164
164
165
+
Now that our versioning is complete, let's test out a model and controller to work with our new url of ```localhost:3000/api/v1```. Let's scaffold a test model/controller and call it ```movies```
166
+
167
+
```ruby
168
+
rails g scaffold Moviesname:string rating:integer
169
+
170
+
rails db:migrate
171
+
```
172
+
173
+
The Rails engine creates your controller in the default ```/controllers``` directory but we need to move our new controller into the ```api/v1``` directory. You can either move it manually or the following:
0 commit comments