# Accessing ancester method is fine but asking for child templ

**URL:** <https://www.ruby-forum.com/t/accessing-ancester-method-is-fine-but-asking-for-child-templ/120470>\
**Category:** Deployment\
**Created:** [November 17, 2007, 8:37am UTC](https://www.ruby-forum.com/t/accessing-ancester-method-is-fine-but-asking-for-child-templ/120470 "2007-11-17T08:37:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clemrock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c57346/32.png) [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Post date:** [November 17, 2007, 8:37am UTC](https://www.ruby-forum.com/t/accessing-ancester-method-is-fine-but-asking-for-child-templ/120470/1 "2007-11-17T08:37:46Z")

</div>

Hello,

```
 I have a strange situation where I'm making a dummy class that

```

inherits from a parent class. it calls the parent method fine but is  
asking for the child class to provide a view template.

I’m creating the dummy class for testing purposes in a functional test.

Heres basically what I’m trying:

and the error:

```auto
class ParentController < ApplicationController

    def parent_method
        #... code
    end
end

class DummyClass < ParentController
     #no child method
end

class ParentControllerTest < Test::Unit::TestCase
  fixtures :users

  def setup
    @controller = DummyController.new
    @request = ActionController::TestRequest.new
    @response = ActionController::TestResponse.new

  def test_parent_method
    post :parent_method
    assert_response :success
  end
end

```

ActionController::MissingTemplate: Missing template  
…/app/views/dummy/song\_search.rhtml

I’m sure it’s something obvious I’m missing but I’m just not seeing it.

Thanks for any help,  
Clem
