Rails 3 app.... I have the following jQuery which is working:
$.ajax({
url: '/navigations/sidenav',
data: "urlpath=" + urlpath,
success: function(e){
$("#sideNav-container").slideDown("slow");
}
});
urlpath can be paths like '/' or '/projects' or '/authors' stuff like that.
My question is how do I grab that urlpath variable in the controller so I can use it in my view to determine what sidenav to return to the user?
Thanks