i am working on rails 2.3.11 .. and running my rails application with -P blogs
and the url will be like http://localhost:3000/application_name
.
How to retrieve the above url inside the javascript of my rails view file
Please give suggestions
EDIT
localhost:3000/application_name is the base_url all over the app. I have a javascript with $.ajax with :url with "controller/action" which is not loading properly for the reason that its taking the loading page ctrllr as the ctrllr and not taking the ctrllr from the one i gave in the javascript .