I'm only successful in using the private api to set my cookies.
I just want to set the domain on the cookie. Anything I try results in
the content of the cookie being "domain.domain.commyactualvalue"
How do I create a cookie with
* name = "my_cookie" c
* content = "yummy"
* domain = "domain.com"
from inside a helper
module Merb
module GlobalHelpers
# helpers defined here available to all views & controllers
def set_my_cookie
# this works, except it is using the private api method...
# obviously I should be using public api methods
set_cookie("my_cookiel", "yummy", {:domain => "domain.com"})
end
end
end
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---