Skip to content

Access to cookies in a widget #149

Description

@mbajur

Hello!
I've found a similar topic on google groups, it's a bit old and i'm not sure if google groups is an official way for asking questions but so i'll ask again here.

I'm trying to use a cookies variable in my widget view and it's impossible due to Unknown method 'cookies' exception. In the previously mentioned topic, Nick suggests to use the following code in my widget:

delegate :cookies, :to => :parent_controller
helper_method :cookies

However, it's not working. Right now, i'm getting private method 'cookies' called for #<VideosController:0x0000010ab7fdf8>

Have you any idea how can i deal with that?
Thanks in advance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions