Re: [Rails] Is it possible to run some script before controller is hit

2013-06-03 Thread Colin Law
On 3 June 2013 07:07, Damjan Rems wrote: > This has everything to do with new European cookie law ;-( > > Is it possible to start some script (on every call), before rails > application is hit. Script would check for the presence of a cookie and > if it is there just pass control forward. If not i

Re: [Rails] Is it possible to run some script before controller is hit

2013-06-02 Thread Dheeraj Kumar
I'd do this in the client site - with javascript. -- Dheeraj Kumar On Monday 3 June 2013 at 11:37 AM, Damjan Rems wrote: > This has everything to do with new European cookie law ;-( > > Is it possible to start some script (on every call), before rails > application is hit. Script would check

[Rails] Is it possible to run some script before controller is hit

2013-06-02 Thread Damjan Rems
This has everything to do with new European cookie law ;-( Is it possible to start some script (on every call), before rails application is hit. Script would check for the presence of a cookie and if it is there just pass control forward. If not it would popup window about legal stuff and redirect