This commit is contained in:
albert
2010-08-18 18:42:33 -04:00
parent 23656e3fa9
commit 5610731b35
48 changed files with 664 additions and 716 deletions

View File

@@ -1,11 +1,16 @@
class ArtistsController < ApplicationController
def new
@artist = Artist.new_with_defaults(params)
end
def edit
@artist = Artist.find(params[:id])
end
def index
order = params[:order] == "date" ? "updated_at DESC" : "name"
limit = params[:limit] || 50
@artists = Artist.paginate(Artist.build_relation())
end
def show