# Config error

**URL:** <https://www.ruby-forum.com/t/config-error/152926>\
**Category:** Rails\
**Created:** [November 10, 2008, 12:11am UTC](https://www.ruby-forum.com/t/config-error/152926 "2008-11-10T00:11:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bert\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/278dde/32.png) [@bert\_a](https://www.ruby-forum.com/u/bert_a)\
**Post date:** [November 10, 2008, 12:11am UTC](https://www.ruby-forum.com/t/config-error/152926/1 "2008-11-10T00:11:03Z")

</div>

I just started developing a social network using the RailsSpace book.  
The books instruction is to change the url to be [http://localhost:3000](http://localhost:3000)  
instead of [http://localhost:3000/site](http://localhost:3000/site). To do this, I changed the  
config/routes.rb file’s map.connect to be  
map.connect ‘’, :controller =\> “site”

and then deleted public/index.html

Finally I copied and pasted the books source code for  
app/views/site/index.rhtml

The syntax error is:  
C:/folder/appname/config/routes.rb:42: syntax error, unexpected $end,  
expecting kEND

This error occurred while loading the following files:  
C:/folder/appname/config/routes.rb

Would really appreciate any help to solving this (BTW, I am a complete  
novice to RoR and programming, so I don’t know if this is the  
appropriate forum or there is a better one for beginners)

---

<div class="post-metadata">

**Author:** ![bert\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/278dde/32.png) [@bert\_a](https://www.ruby-forum.com/u/bert_a)\
**Post date:** [November 10, 2008, 12:56am UTC](https://www.ruby-forum.com/t/config-error/152926/2 "2008-11-10T00:56:28Z")

</div>

I figured out my dumb error - forgot to put “end” after the map.connect  
statement. Sorry about posting this.

Bert A. wrote:

> I just started developing a social network using the RailsSpace book.  
> The books instruction is to change the url to be [http://localhost:3000](http://localhost:3000)  
> instead of [http://localhost:3000/site](http://localhost:3000/site). To do this, I changed the  
> config/routes.rb file’s map.connect to be  
> map.connect ‘’, :controller =\> “site”
> 
> and then deleted public/index.html
> 
> Finally I copied and pasted the books source code for  
> app/views/site/index.rhtml
> 
> The syntax error is:  
> C:/folder/appname/config/routes.rb:42: syntax error, unexpected $end,  
> expecting kEND
> 
> This error occurred while loading the following files:  
> C:/folder/appname/config/routes.rb
> 
> Would really appreciate any help to solving this (BTW, I am a complete  
> novice to RoR and programming, so I don’t know if this is the  
> appropriate forum or there is a better one for beginners)
