Sha256: 8a5045d9d470cfb6de5de78911c3d129d885629bbb4a6a1bf9b0dc3e62b80021

Contents?: true

Size: 328 Bytes

Versions: 10

Compression:

Stored size: 328 Bytes

Contents

class Ksk::NavigationsController < Bhf::ApplicationController

  def sort
    Navigation.sort_items(params[:navigation])
    Navigation.find(params[:id]).update_attribute(:parent_id, params[:parent_id])
    head :ok
  end

  def create
    n = Navigation.new(params[:navigation])
    n.save
    render :text => n.id
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ksk-0.2.2 app/controllers/ksk/navigations_controller.rb
ksk-0.2.1 app/controllers/ksk/navigations_controller.rb
ksk-0.2.0 app/controllers/ksk/navigations_controller.rb
ksk-0.1.7 app/controllers/ksk/navigations_controller.rb
ksk-0.1.6 app/controllers/ksk/navigations_controller.rb
ksk-0.1.5 app/controllers/ksk/navigations_controller.rb
ksk-0.1.4 app/controllers/ksk/navigations_controller.rb
ksk-0.1.3 app/controllers/ksk/navigations_controller.rb
ksk-0.1.2 app/controllers/ksk/navigations_controller.rb
ksk-0.1.1 app/controllers/kiosk/navigations_controller.rb