Rendering

Renders string and is useful for debugging purposes.

 

render :inline => "time now is "

 

Render the text.

 

render :text => "Rock and Roll ain't noise pollutions!"

 

Renders the action's template but does not call the action

 

render :action => :action_name 

 

Renders the template:

 

render :template => "controller/action"

 

Renders the style

 

render :layout  => :admin

 

Renders the partial

 

render :partial => partial_name
 

 

 

 

 

 

 

你可能感兴趣的:(in)