I am using Apache2.2 + Mongrel on my machine.
Now I am accessing it over LAN. When I enter http://mymachinename/myapp
it opens fine but when I click on any link in my rails app, it replaces
mymachinename with localhost (http://localhost/myapp/controller/action)
and thus I am unable to access it from remote location.
This could be something to do with how you reference your hrefs in
your rails apps.
Could you paste one of your hrefs please?
On Nov 7, 11:11 am, “Vapor …” [email protected]
[email protected] wrote:
This could be something to do with how you reference your hrefs in
your rails apps.
Could you paste one of your hrefs please?On Nov 7, 11:11 am, “Vapor …” [email protected]
Like this…
<%= link_to(‘Home’, :controller => ‘post’, :action => ‘index’) %>