I have installed Ruby, RubyGems, Rails, MySQL and sqlite3. After starting the server and viewing a simple application called ''greeting.rhtml'' I get the following message in FireFox: Template is missing Missing template app/greeting.html.erb in view path C:/Documents and Settings/Me/Desktop/rubydev/hello/app/views I am a newbie and really don''t know where to go from here. Any suggestions..? Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
it''s as simple as the message tells you, the file greeting.html.erb in folder C:/Documents and Settings/Me/Desktop/rubydev/hello/app/views is missing. this should contain the html/erb code to display your data for simple testing/make it run, you can just place an empty file with the name there or put some simple html in it like: <h1>Greeting</h1> that''s all to it, you should see the content of the file in your browser -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks, it is now working. But I don''t really understand - what on earth is a html.erb file? And why does this file work but the .rhtml file doesn''t? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 10 Apr 2008, at 22:20, Bazley wrote:> > Thanks, it is now working. But I don''t really understand - what on > earth is a html.erb file? And why does this file work but the .rhtml > file doesn''t?.html.erb is the new name for .rhtml. Both should still work though. Fred --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
It''s a bit of a niggle that the .rhtml file should work but it doesn''t, despite the html.erb file working fine. Is there anything you can recommend I do to investigate and/or fix this..? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thorsten Mueller wrote:> it''s as simple as the message tells you, the file greeting.html.erb > in folder C:/Documents and > Settings/Me/Desktop/rubydev/hello/app/views > is missing. > > this should contain the html/erb code to display your data > for simple testing/make it run, you can just place an empty file with > the name there or put some simple html in it like: > > <h1>Greeting</h1> > > that''s all to it, you should see the content of the file in your browserHi, I am also new to Ruby on Rails and html....after reading your comment i now know that i need to create a html.erb file but my question is how do i create an html.erb file???? using notepad??? Do i jus type (da file name) followed by html.erb??? I''ve tried dis but it still says "Template is Missing" Thanks and hope 2 hear 4m u soon! -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Bazley wrote:> It''s a bit of a niggle that the .rhtml file should work but it > doesn''t, despite the html.erb file working fine. Is there anything you > can recommend I do to investigate and/or fix this..?Nothing needs to be "fixed". The .rhtml naming scheme is deprecated in Rails 2, and I believe it''s been removed entirely in Rails 3. So don''t use it! If you have a tutorial that uses .rhtml, that''s a sure sign that it''s out of date. Find a current one. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Dark David wrote:> Thorsten Mueller wrote: >> it''s as simple as the message tells you, the file greeting.html.erb >> in folder C:/Documents and >> Settings/Me/Desktop/rubydev/hello/app/views >> is missing. >> >> this should contain the html/erb code to display your data >> for simple testing/make it run, you can just place an empty file with >> the name there or put some simple html in it like: >> >> <h1>Greeting</h1> >> >> that''s all to it, you should see the content of the file in your browser > > Hi, I am also new to Ruby on Rails and html....after reading your > comment i now know that i need to create a html.erb file but my question > is how do i create an html.erb file???? using notepad??? Do i jus type > (da file name) followed by html.erb??? I''ve tried dis but it still says > "Template is Missing" > > Thanks and hope 2 hear 4m u soon!It''s just a text file. You create it in a text editor, the same way you''d create a plain HTML file for a static website. A thought: if you don''t know how to create static Web pages, then you''re not ready to start working with Rails (or any other Web programming framework) quite yet. Learn HTML first, then come back. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> It''s just a text file. You create it in a text editor, the same way > you''d create a plain HTML file for a static website. > > A thought: if you don''t know how to create static Web pages, then you''re > not ready to > start working with Rails (or any other Web programming framework) quite > yet. Learn HTML first, then come back. > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.orgIts cool mate, I''ve solved the problem myself. I was using NOTEPAD before but I tried SciTe and it works. -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Dark David wrote in post #911654:> Its cool mate, I''ve solved the problem myself. I was using NOTEPAD > before but I tried SciTe and it works.Strange this would work in one text editor and not the other. It should have been a simple bit of HTML code. -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 12 May 2010 13:36, Dark David <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:>> It''s just a text file. You create it in a text editor, the same way >> you''d create a plain HTML file for a static website. >> >> A thought: if you don''t know how to create static Web pages, then you''re >> not ready to >> start working with Rails (or any other Web programming framework) quite >> yet. Learn HTML first, then come back. >> >> Best, >> -- >> Marnen Laibow-Koser >> http://www.marnen.org >> marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > > Its cool mate, I''ve solved the problem myself. I was using NOTEPAD > before but I tried SciTe and it works.Are you sure the file created by notepad had the correct full name, possibly it had .txt on the end. You are using Windows after all, perhaps it hid the extension for you. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Template is missing Missing template salutation/hello, application/hello with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee]}. Searched in: * "C:/Users/RAPHAEL/hello/app/views" How can I solve this problem ? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/69b00cfddbccda0cd90b8aff449a5dbe%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
Does that file exist at either of the sub-paths indicated, or not? If not, move it there, or create it there. Check also that you may have a folder called ''salutations'' (plural) and you may have written salutation/hello in your view or controller (wherever you called render). Walter On Jun 29, 2013, at 11:32 AM, Raphael P. wrote:> Template is missing > Missing template salutation/hello, application/hello with > {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, > :ruby, :jbuilder, :coffee]}. Searched in: * > "C:/Users/RAPHAEL/hello/app/views" > > > > How can I solve this problem ? > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/69b00cfddbccda0cd90b8aff449a5dbe%40ruby-forum.com. > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/B7208FC6-5A0A-46BB-93F8-32BC023D0468%40wdstudio.com. For more options, visit https://groups.google.com/groups/opt_out.
Walter Davis wrote in post #1113937:> Does that file exist at either of the sub-paths indicated, or not? If > not, move it there, or create it there. Check also that you may have a > folder called ''salutations'' (plural) and you may have written > salutation/hello in your view or controller (wherever you called > render). > > WalterDear Walter, Thank your help. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/533d4fe6f6692d183adfa3ecdc082176%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
Thanks walter!! even this helped me! I was so blind to write ''trail'' for ''trial'' lol!! :P Regards, Ud On Saturday, 29 June 2013 14:04:57 UTC-4, Walter Lee Davis wrote:> > Does that file exist at either of the sub-paths indicated, or not? If not, > move it there, or create it there. Check also that you may have a folder > called ''salutations'' (plural) and you may have written salutation/hello in > your view or controller (wherever you called render). > > Walter > > On Jun 29, 2013, at 11:32 AM, Raphael P. wrote: > > > Template is missing > > Missing template salutation/hello, application/hello with > > {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, > > :ruby, :jbuilder, :coffee]}. Searched in: * > > "C:/Users/RAPHAEL/hello/app/views" > > > > > > > > How can I solve this problem ? > > > > -- > > Posted via http://www.ruby-forum.com/. > > > > -- > > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to rubyonrails-ta...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. > > To post to this group, send email to rubyonra...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:>. > > > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/69b00cfddbccda0cd90b8aff449a5dbe%40ruby-forum.com. > > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/176d7f82-31cd-44eb-9446-fa8a20c76ba3%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.