Fixed bugs for nccu

This commit is contained in:
Christophe Vilayphiou committed 2012-05-22 20:00:07 +08:00
1 parent 11a371cbb9
commit d6b92fc604
3 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -74,7 +74,7 @@ class OrbitBackendController< ApplicationController
when 'categories'
a = Array.new
objects.each do |object|
a << object if value.include?(object.send("#{object.class.to_s.underscore}_category").id.to_s)
a << object if (value.include?(object.send("#{object.class.to_s.underscore}_category").id.to_s) rescue nil)
end
objects = a.uniq
when 'tags'
@@ -99,9 +99,9 @@ class OrbitBackendController< ApplicationController
if s
case s.class.to_s
when "String"
s.downcase
s.downcase rescue ''
when "I18nVariable"
s[I18n.locale].downcase
s[I18n.locale].downcase rescue ''
else
nil
end
+1 -1
View File
@@ -5,4 +5,4 @@
per_page: number of items to fetch per page
remote: data-remote
-%>
<li class="page gap"><%= raw(t 'views.pagination.truncate') %></li>
<!-- <li class="page gap"><%= raw(t 'views.pagination.truncate') %></li> -->