# Edge Rails: parse error, unexpected $, expecting kEND

**URL:** <https://discuss.rubyonrails.org/t/edge-rails-parse-error-unexpected-expecting-kend/6905>\
**Category:** rubyonrails-talk\
**Created:** [January 8, 2007, 11:50pm UTC](https://discuss.rubyonrails.org/t/edge-rails-parse-error-unexpected-expecting-kend/6905 "2007-01-08T23:50:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_A\_Black1](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@David\_A\_Black1](https://discuss.rubyonrails.org/u/David_A_Black1)\
**Post date:** [January 8, 2007, 11:50pm UTC](https://discuss.rubyonrails.org/t/edge-rails-parse-error-unexpected-expecting-kend/6905/1 "2007-01-08T23:50:59Z")

</div>

Hi --

> New to this environment and working my way through "Agile Web Development with Rails". I had a problem with decimal fields and am using Edge Rails now to get around that issue - only I am now experiencing other problems...
> 
> If you have this book, the exercise is Iteration A4: Prettier Listings
> 
> I have generated some ruby script with the command: ruby script/generate scaffold product admin
> 
> The script produced is as follows:
> 
> class AdminController \< ApplicationController def index

...

> When this script is called ([http://localhost:3000/admin](http://localhost:3000/admin) the following error is generated:
> 
> app/models/product.rb:11: parse error, unexpected $, expecting kEND RAILS\_ROOT: script/../config/..

It's hard to know the problem without seeing product.rb.

David
