small fix for personal course frontend

This commit is contained in:
Harry Bomrah 2015-12-30 00:33:23 +08:00
parent 34a7be8517
commit 94329abd18
1 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@ class PersonalCoursesController < ApplicationController
{ {
"year" => course.year, "year" => course.year,
"title" => course.title, "title" => course.title,
"category" => course.course_category.title, "category" => (course.course_category.title rescue ""),
"semester" => course.course_semester.title, "semester" => (course.course_semester.title rescue ""),
"authors" => (course.member_profile.name rescue ""), "authors" => (course.member_profile.name rescue ""),
"link_to_show" => OrbitHelper.url_to_show(course.to_param) "link_to_show" => OrbitHelper.url_to_show(course.to_param)
} }