Sha256: 0e785a0c639bdfea2effa6a26dd16355760e55f9df1686f14818b4047d0b4c22
Contents?: true
Size: 694 Bytes
Versions: 2
Compression:
Stored size: 694 Bytes
Contents
class WysihatFilesController < ResourceController::Base index.before do @wysihat_file = WysihatFile.new 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| if(@wysihat_file.save) page.insert_html :bottom, :wysihat_files, :partial => 'wysihat_file', :object => @wysihat_file end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wysihat-engine-0.1.1 | app/controllers/wysihat_files_controller.rb |
wysihat-engine-0.1.0 | app/controllers/wysihat_files_controller.rb |