Class: Ishapi::CitiesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Ishapi::CitiesController
- Defined in:
- app/controllers/ishapi/cities_controller.rb
Instance Method Summary collapse
Instance Method Details
#features ⇒ Object
11 12 13 14 |
# File 'app/controllers/ishapi/cities_controller.rb', line 11 def features :index, City @cities = City.where( :is_feature => true ) end |
#index ⇒ Object
6 7 8 9 |
# File 'app/controllers/ishapi/cities_controller.rb', line 6 def index :index, City @cities = City.all end |
#show ⇒ Object
16 17 18 19 |
# File 'app/controllers/ishapi/cities_controller.rb', line 16 def show @city = City.find_by :cityname => params[:cityname] :show, @city end |