moved out search pages
This commit is contained in:
@@ -13,10 +13,15 @@ class ArtistsController < ApplicationController
|
||||
end
|
||||
|
||||
def index
|
||||
@artists = Artist.build_relation(params).paginate(:per_page => 25, :page => params[:page])
|
||||
@search = Artist.search(params[:search])
|
||||
@artists = @search.paginate(:page => params[:page])
|
||||
respond_with(@artists)
|
||||
end
|
||||
|
||||
def search
|
||||
@search = Artist.search(params[:search])
|
||||
end
|
||||
|
||||
def show
|
||||
@artist = Artist.find(params[:id])
|
||||
|
||||
|
||||
@@ -13,6 +13,10 @@ class TagsController < ApplicationController
|
||||
respond_with(@tags)
|
||||
end
|
||||
|
||||
def search
|
||||
@search = Tag.search(params[:search])
|
||||
end
|
||||
|
||||
def show
|
||||
@tag = Tag.find(params[:id])
|
||||
respond_with(@tag)
|
||||
|
||||
Reference in New Issue
Block a user