Ruby Build a Rails API Introduction to REST Test your knowledge of REST

Hideto Yasunori
Hideto Yasunori
9,079 Points

Rails Routes Resources.

We have just created a new application and have also created Users. Now we need to define our routes for Users. Write the code in routes.rb that will create routes for the 7 Rails URIs, all at once.

I believe this is correct but the website shows error. Please help!

routes.rb
Rails.application.routes.draw do
  resources :users
end

1 Answer

Kevin Elliott
Kevin Elliott
15,653 Points

Try again, because that worked for me.