# Rails, WEBrick, refresh issue

**URL:** <https://www.ruby-forum.com/t/rails-webrick-refresh-issue/170116>\
**Category:** Ruby\
**Created:** [June 12, 2009, 2:27pm UTC](https://www.ruby-forum.com/t/rails-webrick-refresh-issue/170116 "2009-06-12T14:27:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Janos\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7c8e57/32.png) [@Janos\_S](https://www.ruby-forum.com/u/Janos_S)\
**Post date:** [June 12, 2009, 2:27pm UTC](https://www.ruby-forum.com/t/rails-webrick-refresh-issue/170116/1 "2009-06-12T14:27:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Janos\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7c8e57/32.png) [@Janos\_S](https://www.ruby-forum.com/u/Janos_S)\
**Post date:** [June 12, 2009, 6:36pm UTC](https://www.ruby-forum.com/t/rails-webrick-refresh-issue/170116/2 "2009-06-12T18:36:46Z")

</div>

On Fri, Jun 12, 2009 at 6:27 AM, Janos S.[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.

---

<div class="post-metadata">

**Author:** ![Janos\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7c8e57/32.png) [@Janos\_S](https://www.ruby-forum.com/u/Janos_S)\
**Post date:** [June 12, 2009, 9:09pm UTC](https://www.ruby-forum.com/t/rails-webrick-refresh-issue/170116/3 "2009-06-12T21:09:04Z")

</div>

> On Fri, Jun 12, 2009 at 6:35 PM, Kendall G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:  
> 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
