2008年6月10日 星期二

partial

include the view in other file

ex:
render :partial=> "books"
render the view in _books.html.erb (  the partial view file must 
start with _ )

ex:
render :partial => "rabbit/list"
render the view in different directory

note: the variable partial view can access is the variable the master view can access 

沒有留言: