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 <http://localhost:3000/upload#> | Framework Trace<http://localhost:3000/upload#>| Full Trace <http://localhost:3000/upload#> app/views/upload/uploadfile.rhtml:10:in `compile!'' /home/malathi/www/upload/app/controllers/upload_controller.rb:3:in `index'' On Tue, Nov 17, 2009 at 1:46 PM, Frederick Cheung < frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > > On Nov 17, 5:36 am, malathi selvaraj <malathira...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > 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 > > > Trace of template inclusion: app/views/upload/uploadfile.rhtml > > > > RAILS_ROOT: /home/malathi/www/upload > > Application Trace <http://localhost:3000/upload#> | Framework > > Trace<http://localhost:3000/upload#>| Full > > Trace <http://localhost:3000/upload#> > > > > app/views/upload/uploadfile.rhtml:12:in `compile!'' > > /home/malathi/www/upload/app/controllers/upload_controller.rb:3:in > `index'' > > > > -- > > Regards, > > S.Malathi. > > >-- Regards, S.Malathi. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
2009/11/17 malathi selvaraj <malathiramya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> 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 %>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 On Tue, Nov 17, 2009 at 3:16 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> > 2009/11/17 malathi selvaraj <malathiramya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > 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 %> > > 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 > > > >-- Regards, S.Malathi. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
2009/11/17 malathi selvaraj <malathiramya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> uploadfile.rhtml : http://pastebin.com/m25d1f3baSo it does not like <% end %> Can you explain what is the purpose of that line? Colin> > error :http://pastebin.com/m150b261e > > On Tue, Nov 17, 2009 at 3:16 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: >> >> 2009/11/17 malathi selvaraj <malathiramya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: >> > 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 %> >> >> 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 >> >> > > > > -- > Regards, > S.Malathi. > > > > >
i don''t know what is that purpose of the tag,just i saw that program in tutorial only. On Tue, Nov 17, 2009 at 3:35 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> > 2009/11/17 malathi selvaraj <malathiramya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > uploadfile.rhtml : http://pastebin.com/m25d1f3ba > > So it does not like <% end %> > Can you explain what is the purpose of that line? > > Colin > > > > > error :http://pastebin.com/m150b261e > > > > On Tue, Nov 17, 2009 at 3:16 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> > wrote: > >> > >> 2009/11/17 malathi selvaraj <malathiramya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > >> > 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 %> > >> > >> 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 > >> > >> > > > > > > > > -- > > Regards, > > S.Malathi. > > > > > > > > > > > > >-- Regards, S.Malathi. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
2009/11/17 malathi selvaraj <malathiramya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> 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> > On Tue, Nov 17, 2009 at 3:35 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: >> >> 2009/11/17 malathi selvaraj <malathiramya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: >> > uploadfile.rhtml : http://pastebin.com/m25d1f3ba >> >> So it does not like <% end %> >> Can you explain what is the purpose of that line? >> >> Colin >> >> > >> > error :http://pastebin.com/m150b261e >> > >> > On Tue, Nov 17, 2009 at 3:16 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> >> > wrote: >> >> >> >> 2009/11/17 malathi selvaraj <malathiramya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: >> >> > 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 %> >> >> >> >> 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 >> >> >> >> >> > >> > >> > >> > -- >> > Regards, >> > S.Malathi. >> > >> > >> > > >> > >> >> > > > > -- > Regards, > S.Malathi. > > > > >
On Nov 17, 9:59 am, malathi selvaraj <malathira...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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> > > > > On Tue, Nov 17, 2009 at 3:16 PM, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > 2009/11/17 malathi selvaraj <malathira...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > > 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 %> > > > 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 > > -- > Regards, > S.Malathi.