I'm creating a mountable engine in ROR 3.1.3 and I have a problem with creating non-restful routes.
My controller:
#sessions_controller.rb
module Loginout
class SessionsController < ApplicationController
def abc
raise 'aaaaaaaa'
end
.......
routes:
#routes.rb
get '/sessions/abc'
#match '/sessions/abc', :to => 'sessions#abc'
gives me an error:
Routing Error
uninitialized constant SessionsController
And while I use match instead it works fine (rises the exception). Why does it fail with get? How to fix this get?