working links for widget items

This commit is contained in:
Harry Bomrah 2014-05-24 19:37:57 +08:00
parent f97ccb0436
commit 7ec66cb663
1 changed files with 2 additions and 2 deletions

View File

@ -37,14 +37,14 @@ class FaqsController < ApplicationController
def widget
faqs = Qa.filter_by_widget_categories.collect do |qa|
{
"link_to_show" => OrbitHelper.url_to_show(qa.to_param),
"link_to_show" => OrbitHelper.widget_item_url(qa.to_param),
"title" => qa.title,
"postdate" => qa.created_at.strftime('%Y-%m-%d %H:%M')
}
end
{
"faqs" => faqs,
"extras" => {"widget-title"=>"Faqs"}
"extras" => {"widget-title"=>"Faqs","more_url"=>OrbitHelper.widget_more_url}
}
end
end