app/controllers/adminpanel/sections_controller.rb in adminpanel-1.2.8 vs app/controllers/adminpanel/sections_controller.rb in adminpanel-1.2.9
- old
+ new
@@ -14,10 +14,14 @@
# end
# end
def edit
@section = Section.find(params[:id])
+ respond_to do |format|
+ format.html
+ format.json {render :json => {:section => @section }}
+ end
end
def update
@section = Section.find(params[:id])
@@ -41,6 +45,6 @@
def index
@sections = Section.all
end
end
-end
\ No newline at end of file
+end