# Render action in rails 2.3

**URL:** <https://www.ruby-forum.com/t/render-action-in-rails-2-3/162901>\
**Category:** Rails\
**Created:** [March 15, 2009, 12:19pm UTC](https://www.ruby-forum.com/t/render-action-in-rails-2-3/162901 "2009-03-15T12:19:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zeljko\_Dakic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/41988e/32.png) [@Zeljko\_Dakic](https://www.ruby-forum.com/u/Zeljko_Dakic)\
**Post date:** [March 15, 2009, 12:19pm UTC](https://www.ruby-forum.com/t/render-action-in-rails-2-3/162901/1 "2009-03-15T12:19:55Z")

</div>

Hi,

I might be out of touch with latest features in rails or this might be  
just simple error on my part. I can’t get this to work in site layout:

 \<%= render :controller =\> 'site', :action =\> "footer" %\>

I need to list some links in footer and that is why I need this in  
layout. If this for some reason isn’t working any more, can you please  
suggest any alternative approach.

Thanks for all the help.

Zeljko

---

<div class="post-metadata">

**Author:** ![Zeljko\_Dakic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/41988e/32.png) [@Zeljko\_Dakic](https://www.ruby-forum.com/u/Zeljko_Dakic)\
**Post date:** [March 15, 2009, 12:46pm UTC](https://www.ruby-forum.com/t/render-action-in-rails-2-3/162901/2 "2009-03-15T12:46:50Z")

</div>

don’t you just want to render a template like this:  
\<%= render “shared/footer” %\>

?

---

<div class="post-metadata">

**Author:** ![Zeljko\_Dakic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/41988e/32.png) [@Zeljko\_Dakic](https://www.ruby-forum.com/u/Zeljko_Dakic)\
**Post date:** [March 16, 2009, 12:24pm UTC](https://www.ruby-forum.com/t/render-action-in-rails-2-3/162901/3 "2009-03-16T12:24:08Z")

</div>

In application.rb you will need to get all footers and ut them in a  
variable.

class AC

```
before_filter :get_footer

def get_footer
   @links = FooterLinks.all
end

```

end

in your layout you can either put directly like:

- for link in @links do  
= link\_to link.name, link.path

or put it in a partial and call it from the layout

= render :partial =\> “footer”
