Skip to content

Instantly share code, notes, and snippets.

@amitpatelx
Created April 2, 2012 10:33
Show Gist options
  • Save amitpatelx/2282449 to your computer and use it in GitHub Desktop.
Save amitpatelx/2282449 to your computer and use it in GitHub Desktop.
# Renders the template located in [TEMPLATE_ROOT]/weblog/show.r(html|xml) (in Rails, app/views/weblog/show.erb)
render :template => "weblog/show"
# Renders the template with a local variable
render :template => "weblog/show", :locals => {:customer => Customer.new}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment