kryali/classwhole — Issue #53: breadcrumbs error
Author: kryali
Created: 2011-11-02 06:44:38+00:00
State: open

seeing this error pop up a lot while using autocomplete. But this seems like this code is specific to breadcrumbs. Can you check it out scott? To reproduce, just watch the console and use the autocomplete.

```
Started GET "/courses/spring/2012/RST" for 66.249.72.182 at 2011-11-02 06:41:57 +0000
Processing by CatalogController#subject as */*
Parameters: {"season"=>"spring", "year"=>"2012", "subject_code"=>"RST"}
Completed 500 Internal Server Error in 2ms

NoMethodError (undefined method `+' for nil:NilClass):
app/controllers/catalog_controller.rb:66:in `subject'
```

```ruby

63 def subject
64 @subject = get_subject(params)
65 @courses = @subject.courses
66 cookies["courses_breadcrumb"] = cookies["major_breadcrumb"]+"/"+@subject.code
67 render 'subject'
68 end
````