Rails
Ruby
code posted
by
Jianlin
created at 12 Sep 00:10
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
class CategoriesController < ApplicationController # GET /categories # GET /categories.xml def index @categories = Category.all respond_to do |format| format.html # index.html.erb format.xml { render :xml => @categories } end end end |
284 Bytes in 2 ms with coderay