Hi,
It seems like I have to restart the server for any additions of
controllers, models etc. to have any effect since upgrading to Rails
2.0, otherwise I get a routing error. Anyone know how to fix this, and
why this is?
Many thanks,
Gustav
Hi,
It seems like I have to restart the server for any additions of
controllers, models etc. to have any effect since upgrading to Rails
2.0, otherwise I get a routing error. Anyone know how to fix this, and
why this is?
Many thanks,
Gustav
Gustav S. wrote:
Hi,
It seems like I have to restart the server for any additions of
controllers, models etc. to have any effect since upgrading to Rails
2.0, otherwise I get a routing error. Anyone know how to fix this, and
why this is?Many thanks,
Gustav
I was wondering the same thing, but I think I may have figured it out. I
just noticed in the “Agile Web D. with Rails v2” book that it
says:
“It turns out that the WEBrick-based Rails dispatcher is pretty clever.
In development mode (as opposed to testing or production), it
automatically reloads application source files when a new request comes
along.”
But isn’t the default server now Mongrel? Maybe Mongrel doesn’t work
like that, so it requires a restart each time. You could use
‘script/server webrick’ to force WEBrick instead of Mongrel, or just
deal with restarting.
Did you check:
On 2 Jan., 16:00, Gustav S. [email protected]
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs