rubycas/rubycas-client-rails — pull request #30 by martinx (2014-03-20 02:58:59+00:00)
Title: Get login ticket from controller

When using local custom login page,we should pass login_ticket to remote cas server.

sessions_controller.rb
```ruby
#coding: utf-8

class SessionsController < ApplicationController
before_action RubyCAS::Filter, except: :new
before_action :init_cas_params

def new
@lt = RubyCAS::Filter.login_ticket
render layout: false
end

def destroy
RubyCAS::Filter.logout(self)
end
end
```

sessions/new.html.erb
```html

```

----