Im trying to create what will eventually be a rails gem (right now I have the files within the /lib directory) and I need to be able to read/write to and from cookies and sessions. My methods will be called from within either the controller or views, so access to the cookies and sessions SHOULD be possible from within my gem but I cant figure out how to do it.
Ive tried extending ActionController to include my module as well as including ActionController inside my module and nothing works. It could be the way Im running my tests since I feel like I have more success when trying to access my module and classes from within console.
Does anyone have any examples of accessing cookies and sessions from within gems/plugins etc?
Thanks,
Josh