fix a nil class error about tag
This commit is contained in:
parent
7951358695
commit
423326d67c
|
@ -38,8 +38,9 @@ class ArchivesController < ApplicationController
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
{
|
{
|
||||||
"tag-name" => t[0].name,
|
"tag-name" => (t[0].name rescue ""),
|
||||||
"archives" => archives
|
"archives" => archives
|
||||||
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
if(files_by_category_tag.empty?)
|
if(files_by_category_tag.empty?)
|
||||||
|
@ -91,7 +92,7 @@ class ArchivesController < ApplicationController
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
{
|
{
|
||||||
"tag-name" => t[0].name,
|
"tag-name" => (t[0].name rescue ""),
|
||||||
"archives" => archives
|
"archives" => archives
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue