Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class LocationController < ApplicationController
- def show
- @locations = Location.find(:all, :order => "id DESC", :limit => 10)
- respond_to do |format|
- format.html # show.html.erb
- format.xml {render :xml => @locations }
- end
- end
- end
Add Comment
Please, Sign In to add comment