diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 2e56f29..77465f0 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -3,7 +3,5 @@ class UsersController < ApplicationController def show @user = User.find(params[:id]) - end - end diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb deleted file mode 100644 index ae33c8d..0000000 --- a/app/views/home/index.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -

Home#index

-

Find me in app/views/home/index.html.erb

-<% @users.each do |user| %> -

User: <%=link_to user.name, user %>

-<% end %> diff --git a/config/routes.rb b/config/routes.rb index 0e347c4..6d08e94 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -5,6 +5,9 @@ devise_for :users resources :users, :only => :show + resources :restaurants + #match 'restaurants/new' => 'restaurants#new' + #match 'restaurants/:name' => 'restaurants#show' # The priority is based upon order of creation: