SpringFlowers AutumnMoon
2009-Apr-22 14:14 UTC
need to restart server every time a controller is generated?
i thought we don''t need to restart the server by ruby script/server after we use ruby script/generate controller Bar index help ? but if i don''t restart the server, it will say for localhost:3000/bar Routing Error No route matches "/bar" with {:method=>:get} is it true that we need to restart the server or is there a fast way instead? thanks. -- Posted via http://www.ruby-forum.com/.
Philip Hallstrom
2009-Apr-22 15:59 UTC
Re: need to restart server every time a controller is generated?
On Apr 22, 2009, at 7:14 AM, SpringFlowers AutumnMoon wrote:> > i thought we don''t need to restart the server by > > ruby script/server > > after we use > > ruby script/generate controller Bar index help > > ? > > but if i don''t restart the server, it will say for localhost:3000/bar > > Routing Error > > No route matches "/bar" with {:method=>:get} > > is it true that we need to restart the server or is there a fast way > instead? thanks.You need to restart the server when you add controllers. If you are just changing them then you don''t.
SpringFlowers AutumnMoon
2009-Apr-22 16:04 UTC
Re: need to restart server every time a controller is generated?
Philip Hallstrom wrote:> On Apr 22, 2009, at 7:14 AM, SpringFlowers AutumnMoon wrote: > >> >> but if i don''t restart the server, it will say for localhost:3000/bar >> >> Routing Error >> >> No route matches "/bar" with {:method=>:get} >> >> is it true that we need to restart the server or is there a fast way >> instead? thanks. > > You need to restart the server when you add controllers. If you are > just changing them then you don''t.oh i just tried Rails 1.2.6 on my macbook. seems like here, we don''t need to restart server. maybe we only need to restart when it is Rails 2.0 and above? thanks. -- Posted via http://www.ruby-forum.com/.
Philip Hallstrom
2009-Apr-22 16:21 UTC
Re: need to restart server every time a controller is generated?
>>> but if i don''t restart the server, it will say for localhost:3000/ >>> bar >>> >>> Routing Error >>> >>> No route matches "/bar" with {:method=>:get} >>> >>> is it true that we need to restart the server or is there a fast way >>> instead? thanks. >> >> You need to restart the server when you add controllers. If you are >> just changing them then you don''t. > > oh i just tried Rails 1.2.6 on my macbook. seems like here, we don''t > need to restart server. maybe we only need to restart when it is > Rails > 2.0 and above? thanks.Maybe. 1.2.6 was a long time ago. If this is a new project you should drop that quick and get 2.3.x... a lot has changed since 1.2.6.
SpringFlowers AutumnMoon
2009-Apr-22 16:31 UTC
Re: need to restart server every time a controller is generated?
Philip Hallstrom wrote:>>> You need to restart the server when you add controllers. If you are >>> just changing them then you don''t. >> >> oh i just tried Rails 1.2.6 on my macbook. seems like here, we don''t >> need to restart server. maybe we only need to restart when it is >> Rails >> 2.0 and above? thanks. > > Maybe. 1.2.6 was a long time ago. If this is a new project you > should drop that quick and get 2.3.x... a lot has changed since 1.2.6.can''t 1.2.6 and 2.3 both build a website that is quite "Rails"? what function or speed enhancement can be obtained? it is said that Ruby 1.9 is a lot faster but i wonder if Ruby 1.9 can be used with Rails 2.3? thanks -- Posted via http://www.ruby-forum.com/.