Skip to content

Instantly share code, notes, and snippets.

Created December 2, 2015 06:14
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 anonymous/0615d2cfff0c8ae34dde to your computer and use it in GitHub Desktop.
Save anonymous/0615d2cfff0c8ae34dde to your computer and use it in GitHub Desktop.
Started GET "/realizacija" for 127.0.0.1 at 2015-12-02 07:01:46 +0100
Processing by RealizationsController#index as HTML
User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 17 ORDER BY "users"."id" ASC LIMIT 1
SQL (7.7ms) USE [VeplasRTM]
RTMYearName Load (8.6ms) EXEC sp_executesql N'SELECT TOP (1) [mm_year_plan].* FROM [mm_year_plan] WHERE [mm_year_plan].[year] = N''2015'''
Completed 500 Internal Server Error in 615ms (ActiveRecord: 405.3ms)
NoMethodError (undefined method `[]' for nil:NilClass):
app/models/RTM/rtm_year_plan.rb:14:in `find_by_year_and_month'
app/models/RTM/rtm_year_plan.rb:19:in `calculate_for'
app/models/RTM/rtm_year_plan.rb:28:in `block in calculate_year'
app/models/RTM/rtm_year_plan.rb:26:in `calculate_year'
app/models/realization.rb:5:in `yearly_plan'
app/models/realization.rb:41:in `calculate'
app/controllers/realizations_controller.rb:4:in `index'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment