Closed trkrameshkumar closed 9 years ago
Hi Ramesh, could you give us some more details about what you are trying to accomplish?
Hi Samuel Sieg (@calmyournerves)
I have 3 rails applications , one of them is a going to be central application for authentication which will be using CASino gem to do that, and other two are Client applications, I am trying to install casino gem in my existing central rails application instead of using your ready made CASino Server app, in that case how do i access to the current_user
helper method across all the controlle to perform my operation based on current logged in user.
include CASino::SessionsHelper
in your custom controller.
Thanks @pencil
This did not work for me.
An alternative solution seems to be:
class CustomController < ApplicationController
helper CASino::Engine.helpers
# custom actions
end
Hi @pencil The
current_user
helper method is only available onsessions controller
, other than this session controller i cannot able to access thecurrent_user
helper method on any other controller.