

It failed in the same way when run on one of our other testing servers. On testing the failing command, it also failed with the same message and backtrace when run manually on the server. Rendered attendance_sheets/ within layouts/application (4.0ms)Ĭompleted 500 Internal Server Error in 25ms (ActiveRecord: 0.0ms)ĪctionView::Template::Error (undefined method `map' for nil:NilClass):Īpp/views/attendance_sheets/_:19:in `block in _app_views_attendance_sheets_form_html_erb_3904306276885524695_69942133851520'Īpp/views/attendance_sheets/_:5:in `_app_views_attendance_sheets_form_html_erb_3904306276885524695_69942133851520'Īpp/views/attendance_sheets/ a routine deploy (a log message was being changed) to one of our testing environment servers, the deploy failed with the message NoMethodError: undefined method gsub’ for nil:NilClass whenbundle install` was run.

Processing by AttendanceSheetsController#new as HTML

I am not sure if my self join table is well done either I want to be able to see on teams that belong the user logged and also only the users belonging to the team/logged team_leader
.jpg)
Whenever i try to create an attendance sheet i the undefined method map error for both the partial and main form. The other partial with the user, _attendance_ Has_many :attendances, dependent: :destroyīelongs_to :team_leader, class_name: "User"
#Rails find by undefined method map code#
I am trying to populate a select box with Team names that belong to a specific team leader here are my models and code user.rb I have been struggling with this error for the last 3 hours and its s bit frustrating: Here is the scenario
