Upgraded to rails 3.1.8. Fixed various bugs in wiki.
This commit is contained in:
parent
cd91436f7f
commit
29a6cd8b62
106 changed files with 430 additions and 22436 deletions
|
|
@ -21,7 +21,7 @@ class ArticlesController < ApplicationController
|
|||
end
|
||||
|
||||
@articles = @supplier.articles.includes(:article_category).order(sort)
|
||||
@articles = @articles.where(:name.matches => "%#{params[:query]}%") unless params[:query].nil?
|
||||
@articles = @articles.where('name LIKE ?', "%#{params[:query]}%") unless params[:query].nil?
|
||||
|
||||
@total = @articles.size
|
||||
@articles = @articles.paginate(:page => params[:page], :per_page => @per_page)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue