Q:

Need javascript location object data in ruby helper

I need a way to pass javascript object, that is window.location.href  into a rails helper and use the url value there.
is it possible?

A:

You don't need to pass the javascript value to the helper, you can use 
request.original_url on your code, and will give you the same value as window.location.href in javascript

