RuntimeError in Debit_invoices#new
Showing /home/achachiez/Code/Ruby/Rails/bookyt/app/views/line_items/_list_form.html.haml where line #2 raised:
Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id
Extracted source (around line #2):
1: %h3= t('title.line_items')
2: %table#line_items.table.table-striped{'data-direct-account-id' => resource.direct_account.id, 'data-direct-account-factor' => resource.direct_account_factor}
3: %thead
4: = render 'line_items/list_header', :invoice => invoice
5: %tbody.sortable
Trace of template inclusion: app/views/debit_invoices/_form.html.haml, app/views/application/new.html.haml
Rails.root: /home/achachiez/Code/Ruby/Rails/bookyt
Application Trace | Framework Trace | Full Trace
app/views/line_items/_list_form.html.haml:2:in _app_views_line_items__list_form_html_haml___421911651060381592_66039120' app/views/debit_invoices/_form.html.haml:19:in
block in _app_views_debit_invoices__form_html_haml__3178882032653932038_55522860'
app/views/debit_invoices/_form.html.haml:1:in _app_views_debit_invoices__form_html_haml__3178882032653932038_55522860' app/views/application/new.html.haml:5:in
_app_views_application_new_html_haml__2359191747295712144_55500660'
app/controllers/debit_invoices_controller.rb:41:in new' config/initializers/quiet_assets.rb:7:in
call_with_quiet_assets'
Request
Parameters:
{"locale"=>"en"}