Method: CategoriesController#index
- Defined in:
- app/controllers/categories_controller.rb
#index ⇒ Object
GET /categories GET /categories.json
4 5 6 7 8 9 10 11 |
# File 'app/controllers/categories_controller.rb', line 4 def index @categories = Category.all respond_to do |format| format.html # index.html.erb format.json { render json: @categories } end end |