title: Rails server is not working when i try to run localhost:3000 in the browser
body: <p>I am a beginner into the ROR and I am making a project on ROR. The server is working perfectly but doesn't know it stops working from yesterday. </p>
  
  <p>When I am starting the server it is starting normally but if I access it in the browser by <a href="http://localhost:3000" rel="nofollow noreferrer">http://localhost:3000</a> the server stops working. If I again want to start it with <code>rails s</code> it shows that the port is used by some other process. When I run this again, the server is started but again it is not able to load the index file for me.</p>
  
  <p>Running the server by <code>rails s</code> command:</p>
  
  <pre><code>=&gt; Booting Puma
  =&gt; Rails 5.2.4.3 application starting in development
  =&gt; Run `rails server -h` for more startup options
  *** SIGUSR2 not implemented, signal based restart unavailable!
  *** SIGUSR1 not implemented, signal based restart unavailable!
  *** SIGHUP not implemented, signal based logs reopening unavailable!
  Puma starting in single mode...
  * Version 3.12.6 (ruby 2.6.5-p114), codename: Llamas in Pajamas
  * Min threads: 5, max threads: 5
  * Environment: development
  * Listening on tcp://localhost:3000
  Use Ctrl-C to stop
  </code></pre>
  
  <p>After accessing <a href="http://localhost:3000" rel="nofollow noreferrer">http://localhost:3000</a> on the browser:</p>
  
  <pre><code>=&gt; Booting Puma
  =&gt; Rails 5.2.4.3 application starting in development
  =&gt; Run `rails server -h` for more startup options
  *** SIGUSR2 not implemented, signal based restart unavailable!
  *** SIGUSR1 not implemented, signal based restart unavailable!
  *** SIGHUP not implemented, signal based logs reopening unavailable!
  Puma starting in single mode...
  * Version 3.12.6 (ruby 2.6.5-p114), codename: Llamas in Pajamas
  * Min threads: 5, max threads: 5
  * Environment: development
  * Listening on tcp://localhost:3000
  Use Ctrl-C to stop
  Started GET "/" for 127.0.0.1 at 2020-06-03 09:54:24 +0530
     (0.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
  Processing by MoviesController#index as HTML
    Rendering movies/index.html.erb within layouts/application
    User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?  [["id", 1], ["LIMIT", 1]]
    Movie Load (0.4ms)  SELECT "movies".* FROM "movies"
    Rendered movies/index.html.erb within layouts/application (52.3ms)
  </code></pre>
  
  <p>The server stops if I am accessing <a href="http://localhost:3000" rel="nofollow noreferrer">http://localhost:3000</a> in the browser.</p>
  
  <p><code>index.html.erb</code>:</p>
  
  <pre><code>&lt;% if !user_signed_in? %&gt;
  &lt;div class="jumbotron"&gt;
    &lt;h1&gt; Your Faviorite Movies Revied &lt;/h1&gt;
    &lt;p&gt; Hashtag, hooodie mumblercore selfies. Authentic keffiyeh leggings kickstarter, narwhal jen shorts XOXO Vice Austin cardign. Oragnic drinking vineger freegen pickled&lt;/p&gt;
    &lt;p&gt;&lt;%= link_to "Sign Up To Write A Review", new_user_registration_path, class: "btn btn-primary btn-lg" %&gt;&lt;/p&gt;
  &lt;/div&gt;
  &lt;% end %&gt;
  
  
  &lt;div class="row"&gt;
    &lt;% @movies.each do |movie| %&gt;
    &lt;div class="col-sm-6 col-md-3"&gt;
      &lt;div class="thumbnail"&gt;
        &lt;%= link_to (image_tag movie.image.url(:medium), class: 'image'), movie %&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;% end %&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is the file that I want to render on the browser when I access <a href="http://localhost:3000" rel="nofollow noreferrer">http://localhost:3000</a>.</p>
  
  <blockquote>
    <p>show.html.erb</p>
  </blockquote>
  
  <pre><code>&lt;div class="panel panel-default"&gt;
    &lt;div class="panel-body"&gt;
      &lt;div class="row"&gt;
        &lt;div class="col-md-4"&gt;
          &lt;%= image_tag @movie.image.url(:medium) %&gt;
          &lt;div class="table-responsive"&gt;
            &lt;table class="table"&gt;
              &lt;tbody&gt;
                &lt;tr&gt;
                  &lt;td&gt;&lt;strong&gt;Title:&lt;/strong&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;%= @movie.title %&gt;&lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr&gt;
                   &lt;td&gt;&lt;strong&gt;Description:&lt;/strong&gt;&lt;/td&gt;
                   &lt;td&gt;&lt;%= @movie.description %&gt;&lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr&gt;
                  &lt;td&gt;&lt;strong&gt;Movie length:&lt;/strong&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;%= @movie.movie_length %&gt;&lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr&gt;
                  &lt;td&gt;&lt;strong&gt;Director:&lt;/strong&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;%= @movie.director %&gt;&lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr&gt;
                  &lt;td&gt;&lt;strong&gt;Rating:&lt;/strong&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;%= @movie.rating %&gt;&lt;/td&gt;
                &lt;/tr&gt;
              &lt;/tbody&gt;
            &lt;/table&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  
  &lt;%= link_to 'Edit', edit_movie_path(@movie) %&gt; |
  &lt;%= link_to 'Back', movies_path %&gt;
  </code></pre>
  
  <p><strong>I run this project on a different machine and it's working, it doesn't work only in my system</strong> </p>