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