Created
January 27, 2011 14:32
-
-
Save lawrencecurtis/798573 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DesignsController < ApplicationController | |
def index | |
@designs = Design.accepted | |
@designs = @designs.order("#{params[:order]} DESC") if params[:order].present? | |
@designs = @designs.order(:description) | |
respond_to do |format| | |
format.html | |
format.js { render :json => @designs } | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment