Sha256: 976bb102d6588c7cf3607828abd6b34a507750ed7adc16b36b13656fcd782c5a
Contents?: true
Size: 340 Bytes
Versions: 11
Compression:
Stored size: 340 Bytes
Contents
class CountriesController < InheritedResources::Base respond_to :html, :json load_and_authorize_resource def update @country = Country.find(params[:id]) if params[:move] move_position(@country, params[:move]) return end update! end def index @countries = @countries.page(params[:page]) end end
Version data entries
11 entries across 11 versions & 1 rubygems