Sha256: 9ce51579690ea7d4d20ff21d6181c4c48151f6d796e92700db64cc8a60c32cf3
Contents?: true
Size: 414 Bytes
Versions: 2
Compression:
Stored size: 414 Bytes
Contents
module Geopolitical class HoodsController < GeopoliticalController inherit_resources # 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
geopolitical-0.8.1 | app/controllers/geopolitical/hoods_controller.rb |
geopolitical-0.8.0 | app/controllers/geopolitical/hoods_controller.rb |