Sha256: be4fd47470b1fe8517636d72a6900c7cce3921ddd4c2d09eca7982557beeaeb3
Contents?: true
Size: 424 Bytes
Versions: 10
Compression:
Stored size: 424 Bytes
Contents
module Geopolitical # Hoods Main Public Interface class HoodsController < GeopoliticalController # belongs_to :city # respond_to :html, :xml, :json before_filter :load_relatives, only: [:new, :edit, :create, :update] def collection @hoods = Hood.ordered.page(params[:page]) end private def load_relatives @cities = City.only(:name).map { |e| [e.name, e.id] } end end end
Version data entries
10 entries across 10 versions & 1 rubygems