Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Ruby Newcomer

Reply
Thread Tools

Ruby Newcomer

 
 
Kefan Xie
Guest
Posts: n/a
 
      01-21-2010
Just recently installed Ruby for the purpose of developing extensions
for SpiceWorks. However, this is my first ever experience with Ruby
since its update to its new form (last time touched was at least 3 years
ago when there's no such thing as Webrick server). What I had noticed
was, when I start the Webrick server, if I generate a new controller, I
would receive a routing error until I restart the Webrick server. So
that means for every test of modification I would need to restart the
Webrick server, is that true? If it is, it would seem to be very
tedious. Thanks.

UPDATE: Something I found really odd is that without restarting server,
the new controller would only take effect after a while. Maybe I have
done something during this time, but I don't know. Does anyone what's
the possible problem?
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
brabuhr@gmail.com
Guest
Posts: n/a
 
      01-21-2010
On Thu, Jan 21, 2010 at 12:12 PM, Kefan Xie <> wrote:
> Just recently installed Ruby for the purpose of developing extensions
> for SpiceWorks. However, this is my first ever experience with Ruby
> since its update to its new form (last time touched was at least 3 years
> ago when there's no such thing as Webrick server).


Webrick has been around longer than 3 years, but I'm guessing this is
your first time with Rails. (I'm assuming that SpiceWorks is still
Rails-based.)

You might want to try seeking more targeted guidance from the Rails list.

http://www.ruby-forum.com/forum/3

> What I had noticed was, when I start the Webrick server, if I generate
> a new controller, I would receive a routing error until I restart the
> Webrick server. So that means for every test of modification I would
> need to restart the Webrick server, is that true? If it is, it would seem
> to be very tedious. Thanks.


It sounds like you may be starting the server with the Rails
environment (RAILS_ENV) set to production rather than development.

http://bandwagonblog.wordpress.com/2...-environments/
"Development Mode
config.cache_classes = false

Production Mode
config.cache_classes = true"

http://www.spacevatican.org/2008/12/...-gets-you-down
"if config.cache_classes is true (which it is in production) then all
of your models, controllers etc are loaded up as part of application
initialization"

 
Reply With Quote
 
 
 
 
Kk Xx
Guest
Posts: n/a
 
      01-21-2010
Thanks for the clarification with Webrick server. I guess last time when
I tried Rails it had Webrick but I wasn't aware of it.

Also, for the environment variable, I checked it and it seemed that my
application is already running under development mode. So that rules out
this possibility. Could there be other problems?

PS. I'm running all this on Win 7.
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
newcomer to Ruby John Kearney Ruby 9 09-08-2009 09:56 PM
Newcomer to MCSE/Windows 2003 none@set.yet MCSE 3 03-14-2006 09:43 PM
SOAP server (newcomer q) Alto Java 4 12-18-2005 02:36 PM
Ruby newcomer BAT Ruby 9 12-08-2005 03:16 PM
a little help for a newcomer delia martin Computer Support 4 07-10-2003 01:31 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57