Navigation Menu

Skip to content

Commit

Permalink
render partial from controller
Browse files Browse the repository at this point in the history
  • Loading branch information
dnagir committed Mar 13, 2012
1 parent 0504576 commit 6f7cbfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/pages_controller.rb
@@ -1,4 +1,5 @@
class PagesController < ApplicationController
def index
render :partial => "foo"
end
end
2 changes: 2 additions & 0 deletions app/views/pages/foo.html.erb
@@ -0,0 +1,2 @@
<h1>Foo partial<h1>

0 comments on commit 6f7cbfd

Please sign in to comment.