Rails, WEBrick, refresh issue

Discussion in 'Ruby' started by Janos Sebok, Jun 12, 2009.

  1. Janos Sebok

    Janos Sebok Guest

    [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
    Janos Sebok, Jun 12, 2009
    #1
    1. Advertising

  2. On Fri, Jun 12, 2009 at 6:27 AM, Janos Sebok<> 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
    Kendall Gifford, Jun 12, 2009
    #2
    1. Advertising

  3. Janos Sebok

    Janos Sebok Guest

    >On Fri, Jun 12, 2009 at 6:35 PM, Kendall Gifford <>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<> 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
    Janos Sebok, Jun 12, 2009
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Heinemeier Hansson

    [ANN] Rails 0.5.5: Windows, WEBrick, lots!

    David Heinemeier Hansson, Jul 29, 2004, in forum: Ruby
    Replies:
    9
    Views:
    125
    Carl Youngblood
    Jul 29, 2004
  2. Don Coleman

    Problems running rails with WEBrick

    Don Coleman, Oct 8, 2004, in forum: Ruby
    Replies:
    2
    Views:
    129
    Don Coleman
    Oct 8, 2004
  3. Roeland Moors

    webrick refresh on event

    Roeland Moors, Dec 27, 2004, in forum: Ruby
    Replies:
    1
    Views:
    104
    Dan Fitzpatrick
    Dec 27, 2004
  4. Lloyd Zusman
    Replies:
    2
    Views:
    382
  5. Aaron Smith

    WEBrick::Daemon and WEBrick

    Aaron Smith, Mar 9, 2007, in forum: Ruby
    Replies:
    2
    Views:
    300
    Aaron Smith
    Mar 18, 2007
Loading...

Share This Page