You have a nil object when you didn't expect it! #320

Open
filib opened this Issue Dec 9, 2011 · 0 comments

1 participant

@filib

Rails version: 2.3.14
Typus version: 2-3-stable

Coming up against this error when trying to edit certain tables in the database. Any idea where to look to try and fix?

NoMethodError in Admin/addresses#new

Showing vendor/plugins/typus/app/views/admin/resources/_form.html.erb where line #4 raised:

You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.size
Extracted source (around line #4):

1: <% form_for @item, :url  => options, :builder => ActionView::Helpers::FormBuilder, :html => { :multipart => true } do |form| %>
2:   <fieldset class="inputs">
3:     <ol>
4:       <%= build_form(@fields, form) %>
5:     </ol>
6:   </fieldset>
7:   <fieldset class="buttons">
Trace of template inclusion: vendor/plugins/typus/app/views/admin/resources/new.html.erb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment