# Missing Template

**URL:** <https://www.ruby-forum.com/t/missing-template/161652>\
**Category:** Rails\
**Created:** [February 28, 2009, 12:53pm UTC](https://www.ruby-forum.com/t/missing-template/161652 "2009-02-28T12:53:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shelly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/278dde/32.png) [@Shelly](https://www.ruby-forum.com/u/Shelly)\
**Post date:** [February 28, 2009, 12:53pm UTC](https://www.ruby-forum.com/t/missing-template/161652/1 "2009-02-28T12:53:33Z")

</div>

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

# HELLO WORLD
. 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

---

<div class="post-metadata">

**Author:** ![Shelly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/278dde/32.png) [@Shelly](https://www.ruby-forum.com/u/Shelly)\
**Post date:** [February 28, 2009, 3:37pm UTC](https://www.ruby-forum.com/t/missing-template/161652/2 "2009-02-28T15:37:26Z")

</div>

So you have the view template  
C:/InstantRails/rails\_apps/bob/app/views/say/hello.html.erb

and the view template looks like

# HELLO WORLD

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 D.  
Mutually Human Software

> **[Homepage | Mutually Human](https://www.mutuallyhuman.com/)**
>
> Technology Made for Humans by humans Data Analytics Data Analytics Data has become a critical part of business for most organizations. We work with you to ensure you have confidence in your data, can properly access it, and present it in a way that...

---

<div class="post-metadata">

**Author:** ![Shelly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/278dde/32.png) [@Shelly](https://www.ruby-forum.com/u/Shelly)\
**Post date:** [February 28, 2009, 6:21pm UTC](https://www.ruby-forum.com/t/missing-template/161652/3 "2009-02-28T18:21:19Z")

</div>

yes, that’s what I have…

---

<div class="post-metadata">

**Author:** ![Shelly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/278dde/32.png) [@Shelly](https://www.ruby-forum.com/u/Shelly)\
**Post date:** [February 28, 2009, 11:52pm UTC](https://www.ruby-forum.com/t/missing-template/161652/4 "2009-02-28T23:52:32Z")

</div>

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

# Hello, World!

Open a browser and navigate to [http://localhost:3000/say/hello](http://localhost:3000/say/hello)

Hope this helps.
