I am trying to create what will eventually become a rail gem (right now I have files in the / lib directory) and I need to be able to read / write cookies and sessions from and to them. My methods will be called from a controller or views, so access to cookies and sessions MUST be possible from within my gem, but I cannot figure out how to do this.
Ive tried to extend the ActionController to include my module, and also include an ActionController inside my module and nothing works. This may be the way I run my tests, since I feel that I have more success when trying to access my module and classes from the console.
Does anyone have examples of accessing cookies and sessions from gems / plugins etc.
Thank,
Josh
Joshl source
share