a1dert/lh-tickets-test — Issue #113: NoMethodError in Dashboard#show error
Author: a1dert
Created: 2011-11-30 11:44:33+00:00
State: open

Imported from lighthouse. Original ticket at: http://redtape.lighthouseapp.com/projects/59696/tickets/361. Created by Alexey Derkach - 2011-07-07T14:47:33Z

Steps to reproduce:
1. Login to owner panel.
2. Open http://owner.articulateexpress.com/dashboard

Expected: user should see message about 404 error.
Actual: server error

Details:
@@@
undefined method `currency’ for nil:NilClass
@@@
Trace:
@@@
app/helpers/currency_helper.rb:4:in `current_currency’
app/helpers/currency_helper.rb:12:in `number_to_currency’
app/helpers/demands_helper.rb:4:in `expense_cost’
app/views/demands/expenses/notes.html.erb:10:in `_app_views_demands_expenses_notes_html_erb__673346815_59220720_8072300’
app/views/demands/expenses/notes.html.erb:10:in `_app_views_demands_expenses_notes_html_erb__673346815_59220720_8072300’
app/helpers/demands_helper.rb:21:in `render_demand_partial’
app/views/demands/demand.html.erb:15:in `_app_views_demands_demand_html_erb___1493502175_59287920_2880670’
app/views/dashboard/show.html.erb:14:in `_app_views_dashboard_show_html_erb___752083669_59329540_0’
app/views/dashboard/show.html.erb:13:in `_app_views_dashboard_show_html_erb___752083669_59329540_0’
@@@

According to: [story 6890](https://tracker.anahoret.com/projects/44/stories/6890 "story 6890")