error on file upload

i got the error on view file.

how to solve this.

error:

SyntaxError in

Upload#index
Showing app/views/upload/uploadfile.rhtml where line #7 raised:

compile error
app/views/upload/uploadfile.rhtml:7: syntax error
@output_buffer.concat(( end ).to_s); @output_buffer.concat "\n"
                           ^

Extracted source (around line #7):

4: <p><label for="upload_file">Select File</label> :
5: <%= file_field 'upload', 'datafile' %></p>
6: <%= submit_tag "Upload" %>

7: <%= end %>

Trace of template inclusion: app/views/upload/uploadfile.rhtml

RAILS_ROOT: /home/malathi/www/upload

Application Trace |
Framework Trace |
Full Trace

app/views/upload/uploadfile.rhtml:12:in `compile!'
/home/malathi/www/upload/app/controllers/upload_controller.rb:3:in `index'

Extracted source (around line *#7*):

4: <p><label for="upload_file">Select File</label> :
5: <%= file_field 'upload', 'datafile' %></p>
6: <%= submit_tag "Upload" %>
7: <%= end %>

that should be <% end %>

Fred