make_resourceful do
actions :all
response_for :show do |format|
format.html
format.xml { render :xml => current_object.to_xml }
end
end
private
def current_objects
Product.find(:all, :order => 'name')
end
def current_object
@current_object ||= Product.find_by_permalink(params[:id])
end