# Missing Template with edge Rails (2.3)

**URL:** <https://www.ruby-forum.com/t/missing-template-with-edge-rails-2-3/156850>\
**Category:** Rails\
**Created:** [January 4, 2009, 5:18am UTC](https://www.ruby-forum.com/t/missing-template-with-edge-rails-2-3/156850 "2009-01-04T05:18:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rich](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@rich](https://www.ruby-forum.com/u/rich)\
**Post date:** [January 4, 2009, 5:18am UTC](https://www.ruby-forum.com/t/missing-template-with-edge-rails-2-3/156850/1 "2009-01-04T05:18:06Z")

</div>

After freezing edge rails, all my controller examples are failing with  
MissingTemplate errors.  
e.g., “Missing template attachments/create.erb in view path app/views”

Trying to actually render the views gives me the same error.

I noticed I can fix most of them by using respond\_do but I usually  
never use it. I almost always only need to respond to one format in  
one action so I omit respond\_to and let Rails figure out which file to  
render.

Will Rails no longer do this in 2.3?

---

<div class="post-metadata">

**Author:** ![rich](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@rich](https://www.ruby-forum.com/u/rich)\
**Post date:** [January 6, 2009, 12:24am UTC](https://www.ruby-forum.com/t/missing-template-with-edge-rails-2-3/156850/2 "2009-01-06T00:24:35Z")

</div>

Correction: I meant ‘respond\_to’, not ‘respond\_do’.

---

<div class="post-metadata">

**Author:** ![rich](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@rich](https://www.ruby-forum.com/u/rich)\
**Post date:** [January 6, 2009, 12:28am UTC](https://www.ruby-forum.com/t/missing-template-with-edge-rails-2-3/156850/3 "2009-01-06T00:28:40Z")

</div>

## It’s trying to render a create view and generally create actions don’t have a view, they just redirect somewhere (probably to the object that was just created). Make sure in your controller that it’s definitely redirecting or doing _something_ other than trying to render that view.

Ryan B.  
Freelancer

> **[frozenplague.net](http://frozenplague.net)**
>
> This domain may be for sale!

---

<div class="post-metadata">

**Author:** ![rich](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/35a633/32.png) [@rich](https://www.ruby-forum.com/u/rich)\
**Post date:** [January 6, 2009, 12:31am UTC](https://www.ruby-forum.com/t/missing-template-with-edge-rails-2-3/156850/4 "2009-01-06T00:31:36Z")

</div>

It’s not just create, it’s seemingly all my actions. I just found this  
though:

[http://rails.lighthouseapp.com/projects/8994/tickets/1590-xhrs-require-explicit-respond\_to](http://rails.lighthouseapp.com/projects/8994/tickets/1590-xhrs-require-explicit-respond_to)
