zuinqstudio / redmine_chuck_norris

Other
9 stars 5 forks source link

undefined method `description' for nil:NilClass #4

Closed earcam closed 13 years ago

earcam commented 13 years ago

Using Postgres and embedded in Apache2, installed with the following commands:

sudo service apache2 stop sudo ./script/plugin install git://github.com/Signo-Net/redmine_chuck_norris sudo rake db:migrate:plugins RAILS_ENV=production sudo service apache2 start

db changelogs applied ok but then selecting projects causes 500 and can see the following in redmine log:

ActionView::TemplateError (undefined method `description' for nil:NilClass) on line #21 of vendor/plugins/redmine_chuck_norris/app/views/chuck_norris/_fact.rhtml: 18: 19:

Chuck Norris Fact

20:
21: <%= @fact.description %> 22: <%= link_to_remote l(:next_fact), 23: { :url => { :controller => 'chuck_norris', :action => 'next_fact', :project_id => @project }, 24: :method => :post,

zuinqstudio commented 13 years ago

Fixed! Thanks for the report!