app/controllers/wysihat_files_controller.rb in wysihat-engine-0.1.1 vs app/controllers/wysihat_files_controller.rb in wysihat-engine-0.1.2

- old
+ new

@@ -1,18 +1,9 @@ -class WysihatFilesController < ResourceController::Base - index.before do - @wysihat_file = WysihatFile.new +class WysihatFilesController < ApplicationController + def index + @wysihat_file, @wysihat_files = WysihatFile.new, WysihatFile.all end - #create do - # responds_to_parent do - # render :update do |page| - # if(@wysihat_file.save) - # page.insert_html :bottom, :wysihat_files, :partial => 'wysihat_file', :object => @wysihat_file - # end - # end - # end - #end def create @wysihat_file = WysihatFile.new(params[:wysihat_file]) responds_to_parent do render :update do |page| \ No newline at end of file