I got this error with edge github branch
NoMethodError in Admin_data/home#index
Showing /home/prakash/.bundler/ruby/1.9.1/admin_data-c90759d4e6ad/app/views/admin_data/shared/_drop_down_klasses.html.erb where line #3 raised:
undefined method `map' for nil:NilClass
Extracted source (around line #3):
1:
2:
3: <%= options_for_select(drop_down_for_klasses, @drop_down_url) %>
4: Migration Information
5:
Trace of template inclusion: /home/prakash/.bundler/ruby/1.9.1/admin_data-c90759d4e6ad/app/views/admin_data/shared/_header.html.erb, /home/prakash/.bundler/ruby/1.9.1/admin_data-c90759d4e6ad/app/views/layouts/admin_data.html.erb
Changed to version 1.2.1 and restart server, it worked but gave this error when editing record:
NoMethodError in Admin_data/crud#edit
Showing /usr/local/lib/ruby/gems/1.9.1/gems/admin_data-1.2.1/app/views/admin_data/crud/misc/_form.html.erb where line #7 raised:
undefined method `primary_key_name' for #ActiveRecord::Reflection::AssociationReflection:0x9625ff8
Extracted source (around line #7):
4: [<%= col.type.to_s %>]
5:
6:
7: <%= form_field(klass,
@model, col, f).html_safe %>
8:
9: <% end %>
10:
Trace of template inclusion: /usr/local/lib/ruby/gems/1.9.1/gems/admin_data-1.2.1/app/views/admin_data/crud/edit.html.erb
I got this error with edge github branch
NoMethodError in Admin_data/home#index
Showing /home/prakash/.bundler/ruby/1.9.1/admin_data-c90759d4e6ad/app/views/admin_data/shared/_drop_down_klasses.html.erb where line #3 raised:
undefined method `map' for nil:NilClass
Extracted source (around line #3):
1: 2: 3: <%= options_for_select(drop_down_for_klasses, @drop_down_url) %> 4: Migration Information 5:
Trace of template inclusion: /home/prakash/.bundler/ruby/1.9.1/admin_data-c90759d4e6ad/app/views/admin_data/shared/_header.html.erb, /home/prakash/.bundler/ruby/1.9.1/admin_data-c90759d4e6ad/app/views/layouts/admin_data.html.erb
Changed to version 1.2.1 and restart server, it worked but gave this error when editing record:
NoMethodError in Admin_data/crud#edit
Showing /usr/local/lib/ruby/gems/1.9.1/gems/admin_data-1.2.1/app/views/admin_data/crud/misc/_form.html.erb where line #7 raised:
undefined method `primary_key_name' for #ActiveRecord::Reflection::AssociationReflection:0x9625ff8
Extracted source (around line #7):
4: [<%= col.type.to_s %>]
5:
6:
7: <%= form_field(klass, @model, col, f).html_safe %>
8:
9: <% end %>
10:
Trace of template inclusion: /usr/local/lib/ruby/gems/1.9.1/gems/admin_data-1.2.1/app/views/admin_data/crud/edit.html.erb