Sha256: a65a05acabdb08a1e57f8bee62d6cafda9e6bbbc2c9692d771e35ebe29f1c625

Contents?: true

Size: 460 Bytes

Versions: 2

Compression:

Stored size: 460 Bytes

Contents

class WysihatFilesController < ApplicationController
  def index
    @wysihat_file, @wysihat_files = WysihatFile.new, WysihatFile.all
  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.3 app/controllers/wysihat_files_controller.rb
wysihat-engine-0.1.2 app/controllers/wysihat_files_controller.rb