In my index.html.erb
<p><%= link_to "log Out", :action => 'logout' %></p>
In home controller.rb
def logout
end
and gives me error
Routing Error
No route matches {:action=>"logout", :controller=>"home"}
this maybe simple question. I'm new to rails.