# How does controller call render when there's no render in action

**URL:** <https://www.ruby-forum.com/t/how-does-controller-call-render-when-theres-no-render-in-action/169659>\
**Category:** Rails\
**Created:** [June 6, 2009, 1:18pm UTC](https://www.ruby-forum.com/t/how-does-controller-call-render-when-theres-no-render-in-action/169659 "2009-06-06T13:18:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vojto](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/eada6e/32.png) [@Vojto](https://www.ruby-forum.com/u/Vojto)\
**Post date:** [June 6, 2009, 1:18pm UTC](https://www.ruby-forum.com/t/how-does-controller-call-render-when-theres-no-render-in-action/169659/1 "2009-06-06T13:18:42Z")

</div>

Hello,

I was studying Rails source and at this point:

def process(request, response, method = :perform\_action, \*arguments)  
#:nodoc:  
response.request = request

```
    initialize_template_class(response)
    assign_shortcuts(request, response)
    initialize_current_url
    assign_names

    log_processing
    send(method, *arguments)

    send_response

```

I have a question.

“send(method, \*arguments)” this calls action of a controller, right?  
But if there’s no ‘render’ in action - how does it automatically call  
render and renders the template for the action?

Thanks a lot

---

<div class="post-metadata">

**Author:** ![Vojto](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/eada6e/32.png) [@Vojto](https://www.ruby-forum.com/u/Vojto)\
**Post date:** [June 6, 2009, 3:02pm UTC](https://www.ruby-forum.com/t/how-does-controller-call-render-when-theres-no-render-in-action/169659/2 "2009-06-06T15:02:01Z")

</div>

On Jun 6, 12:17 pm, Vojto [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I have a question.
> 
> “send(method, \*arguments)” this calls action of a controller, right?

not quite - (at least in the common) case, the method that gets called  
is perform\_action, which calls default\_render if you have not called  
render.

Fred

---

<div class="post-metadata">

**Author:** ![Vojto](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/eada6e/32.png) [@Vojto](https://www.ruby-forum.com/u/Vojto)\
**Post date:** [June 7, 2009, 2:14pm UTC](https://www.ruby-forum.com/t/how-does-controller-call-render-when-theres-no-render-in-action/169659/3 "2009-06-07T14:14:02Z")

</div>

Sweet,

so I totally missed perform\_action method 🙂

Thanks 🙂

On Jun 6, 3:01 pm, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
