Routes ma cosa manca?

In routes.rb ho inserito:

resources :sessions

il controller e’:

class SessionsController < ApplicationController

def destroy
session[:id] = nil
session.delete(:casfilteruser)
CASClient::Frameworks::Rails::Filter.logout(self)
end

end

In application.html.erb ho:

<%= link_to ‘Esci’, session_path(session[:cas_user]), :method => :delete
%>

Mi sembra ci sia tutto ma:

No route matches {:action=>“destroy”, :controller=>“sessions”,
:id=>“utente.prova”}

Cosa manca?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs