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</table>\n\n<br />\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: <td><%= link_to 'Edit', edit_ticket_path(ticket) %></td> 19: <td><%= link_to 'Destroy', ticket, :confirm => 'Are you sure?', :method => :delete %></td> 20: </tr> 21: <% end %> 22: </table> 23: 24: <br />

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 Timberlake 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.

Andrew Timberlake wrote:

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

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

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