Rails Render
Rails Render is a strong method that helps you to render your web pages. It comes with many flavors including:
1) Render action: render an action in the current controller, you can specify if you want layout printed or not
2) Render partial: renders part of your web page
3) Render template: render a page, the file path is relative to your application
4) Render file: absolute path is needed
5) Render text
6) Render Json









Mitchell Gillespie said,
November 27, 2007 @ 11:59 pm
Hi,
Is it possible to render an action from a different controller?? if in my routes.rb file I have.. map.connect ‘:controller/:action/:id’ could I not do a:
render :action => ‘//’ ???
Thanks,
Mitch
adam said,
December 25, 2007 @ 6:15 am
you can just do:
render :controller => ‘controller_name’, :action => ‘action_name’
should do the trick!
Rails Render | Ruby on Rails Türkiye said,
February 7, 2008 @ 7:36 am
[...] Kaynak: http://www.rubyonrailsexamples.com/rails-tips/rails-render/ Ekle Sosyal link paylasim sitelerindeki hesabiniza ekleyip, daha sonra kolaylikla bu yaziyi [...]