wiki page work
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
class WikiPageVersionsController < ApplicationController
|
||||
respond_to :json, :html, :xml
|
||||
|
||||
def index
|
||||
@search = WikiPageVersion.search(params[:search])
|
||||
@wiki_page_versions = @search.paginate(:page => params[:page])
|
||||
respond_with(@wiki_page_versions)
|
||||
end
|
||||
|
||||
def show
|
||||
@wiki_page_version = WikiPageVersion.find(params[:id])
|
||||
respond_with(@wiki_page_version)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class WikiPagesController < ApplicationController
|
||||
respond_to :html, :xml, :json
|
||||
respond_to :html, :xml, :json, :js
|
||||
before_filter :member_only, :except => [:index, :show]
|
||||
before_filter :moderator_only, :only => [:destroy]
|
||||
before_filter :normalize_search_params, :only => [:index]
|
||||
|
||||
Reference in New Issue
Block a user