# Cannot Run Ruby on Rails on windows Vista or 7

**URL:** <https://www.ruby-forum.com/t/cannot-run-ruby-on-rails-on-windows-vista-or-7/171250>\
**Category:** Rails\
**Created:** [June 29, 2009, 4:27pm UTC](https://www.ruby-forum.com/t/cannot-run-ruby-on-rails-on-windows-vista-or-7/171250 "2009-06-29T16:27:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Randika\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ba8739/32.png) [@Randika\_R](https://www.ruby-forum.com/u/Randika_R)\
**Post date:** [June 29, 2009, 4:27pm UTC](https://www.ruby-forum.com/t/cannot-run-ruby-on-rails-on-windows-vista-or-7/171250/1 "2009-06-29T16:27:18Z")

</div>

Hi There,  
I have installed ruby on rails on a windows 7 box as mentioned on the  
official ror manual and it works perfectly for some times. but when I  
refresh web browser page few times I got this error and now nothing is  
working on my pc.

here is the error I get when i try to start the server now. does  
anyone has experienced this before?

C:\Users\Randika\emktplcusers\>ruby script\server  
=\> Booting WEBrick  
=\> Rails 2.3.2 application starting on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
d:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/  
dependencies.rb:145:  
in `load_without_new_constant_marking': C:/Users/Randika/emktplcusers/ config/routes.rb:48: syntax error, unexpected $end, expecting kEND (SyntaxError) from d:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/ active_support/depende ncies.rb:145:in `load’  
from d:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/  
active\_support/depende  
ncies.rb:521:in `new_constants_in' from d:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/ active_support/depende ncies.rb:145:in `load’  
from d:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/  
action\_controller/routing  
/route\_set.rb:286:in `load_routes!' from d:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/ action_controller/routing /route_set.rb:286:in `each’  
from d:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/  
action\_controller/routing  
/route\_set.rb:286:in `load_routes!' from d:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/ action_controller/routing /route_set.rb:266:in `reload!’  
from d:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/  
initializer.rb:515:in `initial ize_routing' ... 9 levels... from d:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/ server.rb:84 from d:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:in `gem\_original  
\_require’  
from d:/Ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:  
31:in `require’  
from script/server:3

---

<div class="post-metadata">

**Author:** ![Randika\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ba8739/32.png) [@Randika\_R](https://www.ruby-forum.com/u/Randika_R)\
**Post date:** [June 29, 2009, 4:29pm UTC](https://www.ruby-forum.com/t/cannot-run-ruby-on-rails-on-windows-vista-or-7/171250/2 "2009-06-29T16:29:05Z")

</div>

On Jun 29, 10:26 am, Randika R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hi There,  
> I have installed ruby on rails on a windows 7 box as mentioned on the  
> official ror manual and it works perfectly for some times. but when I  
> refresh web browser page few times I got this error and now nothing is  
> working on my pc.

Looks like a syntax error in your config/routes.rb file (probably a  
missing “end”)

Fred

---

<div class="post-metadata">

**Author:** ![Randika\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ba8739/32.png) [@Randika\_R](https://www.ruby-forum.com/u/Randika_R)\
**Post date:** [June 29, 2009, 4:34pm UTC](https://www.ruby-forum.com/t/cannot-run-ruby-on-rails-on-windows-vista-or-7/171250/3 "2009-06-29T16:34:21Z")

</div>

Hi fred,  
That was so quick. Thanks you. unfortunately I figured it out (Not the  
Solution but the error) and just deleted the original mail post.  
And yes you are so correct something is wrong with my routes.rb file.

On Jun 29, 7:27 pm, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
