# Missing Template

**URL:** <https://discuss.rubyonrails.org/t/missing-template/39898>\
**Category:** rubyonrails-talk\
**Created:** [February 28, 2009, 1:11am UTC](https://discuss.rubyonrails.org/t/missing-template/39898 "2009-02-28T01:11:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shelly](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@Shelly](https://discuss.rubyonrails.org/u/Shelly)\
**Post date:** [February 28, 2009, 1:11am UTC](https://discuss.rubyonrails.org/t/missing-template/39898/1 "2009-02-28T01:11:49Z")

</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 \<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

---

<div class="post-metadata">

**Author:** ![Craig\_Demyanovich](https://avatars.discourse-cdn.com/v4/letter/c/e47c2d/32.png) [@Craig\_Demyanovich](https://discuss.rubyonrails.org/u/Craig_Demyanovich)\
**Post date:** [February 28, 2009, 2:36pm UTC](https://discuss.rubyonrails.org/t/missing-template/39898/2 "2009-02-28T14:36:28Z")

</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?

---

<div class="post-metadata">

**Author:** ![Shelly](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@Shelly](https://discuss.rubyonrails.org/u/Shelly)\
**Post date:** [February 28, 2009, 5:20pm UTC](https://discuss.rubyonrails.org/t/missing-template/39898/3 "2009-02-28T17:20:19Z")

</div>

yes, that's what I have..

---

<div class="post-metadata">

**Author:** ![yaskyj](https://avatars.discourse-cdn.com/v4/letter/y/c5a1d2/32.png) [@yaskyj](https://discuss.rubyonrails.org/u/yaskyj)\
**Post date:** [February 28, 2009, 9:02pm UTC](https://discuss.rubyonrails.org/t/missing-template/39898/4 "2009-02-28T21:02:02Z")

</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 \<h1\>Hello, World!\</h1\>

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

Hope this helps.
