Sha256: 1ae68c528b2b787a4465f756a6fca6679d99166a9f472c3f93d9a3731461699d
Contents?: true
Size: 330 Bytes
Versions: 2
Compression:
Stored size: 330 Bytes
Contents
class Kiosk::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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ksk-0.1.0 | app/controllers/kiosk/navigations_controller.rb |
ksk-0.0.2 | app/controllers/kiosk/navigations_controller.rb |