Sha256: dda142d48fc191f55755cba9938cade6d98db9af80027288910bc7ea496c5cb0
Contents?: true
Size: 213 Bytes
Versions: 16
Compression:
Stored size: 213 Bytes
Contents
class CitiesController < ApplicationController respond_to :html, :json def index @state = State.find(params[:state_id]) @cities = City.where(state_id: @state).all respond_with @cities end end
Version data entries
16 entries across 16 versions & 2 rubygems