Keep getting this error after running scaffold command

I ran ruby script/generate scaffold Ticket artist:string seat#:integer
price:integer ticket_price:float in my terminal
Then I entered rake db:migrate

I went to http://localhost:3000/tickets
and I’m getting this error shown below,

Showing app/views/tickets/index.html.erb where line #21 raised:

compile error
/Users/musdev/peepcode/views_demo/app/views/tickets/index.html.erb:21:
syntax error, unexpected kEND, expecting ‘)’
; end ; @output_buffer.concat “\n\n\n
\n\n”
^
/Users/musdev/peepcode/views_demo/app/views/tickets/index.html.erb:28:
syntax error, unexpected kENSURE, expecting ‘)’
/Users/musdev/peepcode/views_demo/app/views/tickets/index.html.erb:30:
syntax error, unexpected kEND, expecting ‘)’

Extracted source (around line #21):

18: <%= link_to ‘Edit’, edit_ticket_path(ticket) %>
19: <%= link_to ‘Destroy’, ticket, :confirm => ‘Are you sure?’,
:method => :delete %>
20:
21: <% end %>
22:
23:
24:

I usually run the scaffold command and never had this issue before

Thanks

On Thu, May 14, 2009 at 7:04 AM, Zayd C.
[email protected] wrote:

compile error

I usually run the scaffold command and never had this issue before

Thanks

Should you have the ‘#’ after seat?
Have you tried it without the ‘#’? Perhaps seat_no

Andrew T.
http://ramblingsonrails.com
http://www.linkedin.com/in/andrewtimberlake

“I have never let my schooling interfere with my education” - Mark Twain

is a special character for ruby. All that follows to the end of

line is a comment.

On May 13, 7:04 pm, Zayd C. [email protected]

Andrew T. wrote:

On Thu, May 14, 2009 at 7:04 AM, Zayd C.
[email protected] wrote:

compile error

I usually run the scaffold command and never had this issue before

Thanks

Should you have the ‘#’ after seat?
Have you tried it without the ‘#’? Perhaps seat_no

Andrew T.
http://ramblingsonrails.com
http://www.linkedin.com/in/andrewtimberlake

“I have never let my schooling interfere with my education” - Mark Twain

No I haven’t tried yet, can i run the same command again of course
without the # ?
or do I have to delete the ticket table first? How do I go about
removing the ticket table?

Thanks

On Thu, May 14, 2009 at 7:43 AM, Zayd C.
[email protected] wrote:

without the # ?
or do I have to delete the ticket table first? How do I go about
removing the ticket table?

Thanks

Just go into the database ./script/dbconsole and run drop table tickets

Andrew T.
http://ramblingsonrails.com
http://www.linkedin.com/in/andrewtimberlake

“I have never let my schooling interfere with my education” - Mark Twain