Friday, May 22, 2009

Render partial or view from another controller

by Sandip Ransing 0 comments
Tags

To render view from another controller

# In rail 2.3
render "controller/action"

# In rails 2.2 or below
render :template => 'controller/action'

To render partial from another controller's views folder

render :partial => "controller/partial"

Cheers !
Sandip

blog comments powered by Disqus

About The Author

Sandip is a ruby on rails developer based in pune and also a blogger at funonrails. Opensource contributor and working with Josh software Private Limited. for more info read Follow Sandip on Twitter for updates.

Connect With Me...

Github Projects

@sandipransing Twitter