Skip to content

Commit

Permalink
Still need render :partial inside controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
parndt committed Feb 20, 2012
1 parent 3052abf commit 60d7cd3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pages/app/controllers/refinery/admin/page_parts_controller.rb
Expand Up @@ -3,10 +3,11 @@ module Admin
class PagePartsController < ::Refinery::AdminController

def new
render '/refinery/admin/pages/page_part_field',
:part => ::Refinery::PagePart.new(:title => params[:title], :body => params[:body]),
:new_part => true,
:part_index => params[:part_index]
render :partial => '/refinery/admin/pages/page_part_field', :locals => {
:part => ::Refinery::PagePart.new(:title => params[:title], :body => params[:body]),
:new_part => true,
:part_index => params[:part_index]
}
end

def destroy
Expand Down

0 comments on commit 60d7cd3

Please sign in to comment.