Skip to content

Instantly share code, notes, and snippets.

@Sporky023
Created June 12, 2012 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sporky023/2913676 to your computer and use it in GitHub Desktop.
Save Sporky023/2913676 to your computer and use it in GitHub Desktop.
ActionView::Template::Error (undefined method `fed_date' for nil:NilClass):
3: = @state.name
4: (₦ #{number_with_delimiter(@fa, :delimiter => ',')})
5: .small
6: = "#{@state.federal_allocations.order("fed_date DESC").last.fed_date.strftime("%m-%Y")} - #{@state.federal_allocations.order("fed_date DESC").first.fed_date.strftime("%m-%Y")}"
7: .clear
8:
9: #text
app/views/projects/modal.haml:6:in `_app_views_projects_modal_haml___1854547266735518192_2509573200'
app/controllers/projects_controller.rb:9:in `block (2 levels) in modal'
app/controllers/projects_controller.rb:7:in `modal'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment