Hi, I am trying to create a hello world application, where the controller (Say) only has one action: def hello end And the view, hello.rhtml, has <h1>HELLO WORLD</h1>. When I run it, it says Missing template say/hello.html.erb in view path C:/ InstantRails/rails_apps/bob/app/views. I put hello.rhtml (also tried .html.erb, same error) in that spot, but it still gives the missing template error. I appreciate your help! Shelly --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
So you have the view template C:/InstantRails/rails_apps/bob/app/views/say/hello.html.erb and the view template looks like <h1>HELLO WORLD</h1> and the controller C:/InstantRails/rails_apps/bob/app/controllers/say_controller.rb and the controller looks like class SayController < ApplicationController def hello end end and you''re still getting an error? -- Craig Demyanovich Mutually Human Software http://mutuallyhuman.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 -~----------~----~----~----~------~----~------~--~---
yes, that''s what I have.. On Feb 28, 6:36 am, Craig Demyanovich <cdemyanov...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> So you have the view template > C:/InstantRails/rails_apps/bob/app/views/say/hello.html.erb > > and the view template looks like > > <h1>HELLO WORLD</h1> > > and the controller > > C:/InstantRails/rails_apps/bob/app/controllers/say_controller.rb > > and the controller looks like > > class SayController < ApplicationController > def hello > end > end > > and you''re still getting an error? > > -- > Craig Demyanovich > Mutually Human Softwarehttp://mutuallyhuman.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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
These are the steps I would take to set up that app. In the terminal window: $ rails bob $ cd bob /bob$ script/generate controller Say hello (this will set up the empty hello method in the Say controller and hello.html.erb) /bob$ script/server Open the hello.html.erb template and change the contents to <h1>Hello, World!</h1> Open a browser and navigate to http://localhost:3000/say/hello Hope this helps. On Feb 28, 11:20 am, Shelly <tweenkel...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> yes, that''s what I have.. > > On Feb 28, 6:36 am, Craig Demyanovich <cdemyanov...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > So you have the view template > > C:/InstantRails/rails_apps/bob/app/views/say/hello.html.erb > > > and the view template looks like > > > <h1>HELLO WORLD</h1> > > > and the controller > > > C:/InstantRails/rails_apps/bob/app/controllers/say_controller.rb > > > and the controller looks like > > > class SayController < ApplicationController > > def hello > > end > > end > > > and you''re still getting an error? > > > -- > > Craig Demyanovich > > Mutually Human Softwarehttp://mutuallyhuman.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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---