fesplugas/typus — Issue #320: You have a nil object when you didn't expect it!
Author: unsymbol
Created: 2011-12-09 13:37:03+00:00
State: open

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?

```ruby
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:

3:

4: <%= build_form(@fields, form) %>
5:

6:

7:

Trace of template inclusion: vendor/plugins/typus/app/views/admin/resources/new.html.erb
```