I created a new controller "user" with the actions register and index. However when I go on my browser to http://localhost:3000/user/register i get an error. It tells me No route matches {:action=>"about", :controller=>"user"}
Did I not create the controller correctly?
Here's some of my code.
Routes.rb
Rails.application.routes.draw do
get 'user/index'
get 'user/register'
get 'site/index'
get 'site/about'
get 'site/help'
root 'site#index'
User Controller
class UserController < ApplicationController
def index
end
def register
@title = 'Register'
end
end
UPDATE it keeps telling me there is a problem with the line between the ***
<!DOCTYPE html>
<html>
<head>
<title><%= @title %></title>
<%= stylesheet_link_tag 'application.css' %>
</head>
<body>
<div id="whole_page">
<div id="header">Work<b>Link</b></div>
<div id= "nav">
<%= link_to_unless_current'Home', action: 'index' %> |
***<%= link_to_unless_current'About', action: 'about' %> |***
<%= link_to_unless_current'Help', action: 'help' %>
</div>
<div id="content">
<%= yield %>
<%= @content %>
</div>
</div>
</body>
</html>