Class PaneController
In: app/controllers/pane_controller.rb
Parent: ApplicationController

格子状のレイアウトを行うためのぺインを制御する。

Methods

Public Instance methods

横幅を定める。

[Source]

   # File app/controllers/pane_controller.rb, line 4
4:   def set_width
5:     Pane.update params[:id], :width => params[:value]
6:     render :text => params[:value]
7:   end

セルを並び替える。

[Source]

    # File app/controllers/pane_controller.rb, line 10
10:   def sort_cells
11:     ids = params["pane_#{params[:id]}"]
12:     ids.each_with_index do |id, i|
13:       Cell.update id, {:pane_id => params[:id], :position => i}
14:     end
15:     render :nothing => true
16:   end

[Validate]