after changed the tag i got the same eror

SyntaxError in

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

compile error
app/views/upload/uploadfile.rhtml:10: syntax error

Extracted source (around line #10):

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:10:in `compile!'
/home/malathi/www/upload/app/controllers/upload_controller.rb:3:in `index'

Post the contents of uploadfile.rhtml up to that line please, there is
a syntax error there somewhere. Have a close look at each line
yourself first however and see if you can see it. Post the exact
error also please.

Colin

uploadfile.rhtml : http://pastebin.com/m25d1f3ba

error :http://pastebin.com/m150b261e

uploadfile.rhtml : http://pastebin.com/m25d1f3ba

So it does not like <% end %>
Can you explain what is the purpose of that line?

Colin

i don’t know what is that purpose of the tag,just i saw that program in tutorial only.

i don't know what is that purpose of the tag,just i saw that program in
tutorial only.

In that case you need to start by learning a lot more about Ruby. I
think if you check the tutorial carefully you will find you have
copied it incorrectly, there should be no end there. I suggest that
you might start by looking at the Rails Guides (particularly Getting
Started), but also as I said find some primers on Ruby first so that
you at least have a grasp of the basics. The RailsCasts are also
excellent.

Colin

uploadfile.rhtml :http://pastebin.com/m25d1f3ba

error :http://pastebin.com/m150b261e

At the start that should be <% form_tag(...) do %>

(but see Colin's message too - if you are blundering around in the
dark you're likely to just get very frustrated)

Fred