[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Rails, WEBrick, refresh issue

Janos Sebok

6/12/2009 12:27:00 PM

[Note: parts of this message were removed to make it a legal post.]

This list may not be the perfect choice to ask this question, but I have
difficulties posting to Rails talk yet, and my issue might not be Rails
related, so can you please take a look?

I am a newbie to rails, and I'm working from the Pickaxe book + examples.

I seem to be unable to get my changes to the application be displayed in my
browser without shutting down and restarting WEBrick.

I tried every single way to clear the browser cache (Firefox 3.5), refresh,
ctrl-r, ctrl-shift-r, etc, so the issue seems not to be browser related.
Unless I restart the webserver my changes does not appear.

Specs:
WinXP Pro, Ruby 1.8.7 (Mswin32), Rails 2.3.2, WEBrick 1.3.1, SQLite 1.2.3
(all working like a charm so far)
As to my best understanding, in 'development mode' every change should
propagate instantly by re-reading the rails models, views controllers, etc.

Am I missing something?

Thx,
Janos

2 Answers

Kendall Gifford

6/12/2009 4:36:00 PM

0

On Fri, Jun 12, 2009 at 6:27 AM, Janos Sebok<sebi79@gmail.com> wrote:
> As to my best understanding, in 'development mode' every change should
> propagate instantly by re-reading the rails models, views controllers, etc.
>
> Am I missing something?

Are your changes limited exclusively to your models, views and
controllers? You're not changing any routes or other files in your
"config" sub-dir? Also, you're not adding methods to a controller for
which there IS no route defined in config/routes.rb?

Just have to ask.

--
Kendall Gifford

Janos Sebok

6/12/2009 7:08:00 PM

0

>On Fri, Jun 12, 2009 at 6:35 PM, Kendall Gifford <zettabyte@gmail.com>wrot=
e:
>Are your changes limited exclusively to your models, views and
>controllers? You're not changing any routes or other files in your
>"config" sub-dir? Also, you're not adding methods to a controller for
>which there IS no route defined in config/routes.rb?

The last scenario I remember I changed ang existing view template . I did
definitely not change any config files.

I suspect your questions refer to the rules of thumb cases that require
server restart (changing routes, config files, adding new methods)?

Anyways, I'm sure what I experience is correct behaviour, I'd just like to
know how it works.

Thanks,
Janos

On Fri, Jun 12, 2009 at 6:27 AM, Janos Sebok<sebi79@gmail.com> wrote:
> > As to my best understanding, in 'development mode' every change should
> > propagate instantly by re-reading the rails models, views controllers,
> etc.
> >
> > Am I missing something?
>
>
> Just have to ask.
>
> --
> Kendall Gifford
>
>


--=20
=DCdv,
Sebi