For an Ajax function in Javascript in a Rails partial, such as the following:
$.ajax
({
type: "GET",
url: "<%= url_for :action => "offline", :controller=> "user", :id => user.id %>"
});
does the user in user.id
have to be an instance variable?