small fix for personal course frontend
This commit is contained in:
parent
34a7be8517
commit
94329abd18
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue