[ { "user": { "type": "User", "login": "davelab", "gravatar_url": "https://secure.gravatar.com/avatar/49f568b11482e9100fde9e21c6c05585?s=30&d=https://d3nwyuy0nl342s.cloudfront.net%2Fimages%2Fgravatars%2Fgravatar-140.png", "html_url": "https://github.com/davelab", "url": "https://api.github.com/users/davelab", "created_at": "2011-04-09T13:14:20Z" }, "html_url": "https://github.com/sferik/rails_admin/issues/388", "url": "https://api.github.com/repos/sferik/rails_admin/issues/388", "labels": [ ], "number": 388, "comments": 0, "assignee": null, "pull_request": { "html_url": null, "diff_url": null, "patch_url": null }, "updated_at": "2011-04-28T19:41:50Z", "created_at": "2011-04-28T19:41:50Z", "closed_at": null, "state": "open", "body": "Hi,\r\ni followed this tutorial for poliphormic and STI models with upload method: http://tinyurl.com/236sp5y\r\ni want to know the best method to integrate this in rails_admin with a unic model page that include the file input for upload many images.\r\nthanks", "title": "upload with paperclip & STI assets model", "milestone": null }, { "user": { "type": "User", "login": "bbenezech", "gravatar_url": "https://secure.gravatar.com/avatar/c1607873b99845b2cd53f8634860d4d4?s=30&d=https://d3nwyuy0nl342s.cloudfront.net%2Fimages%2Fgravatars%2Fgravatar-140.png", "email": "benoit.benezech@gmail.com", "html_url": "https://github.com/bbenezech", "url": "https://api.github.com/users/bbenezech", "company": "", "location": "Paris, France", "blog": "", "name": "Benoit Bénézech", "created_at": "2008-09-29T20:55:27Z" }, "html_url": "https://github.com/sferik/rails_admin/issues/387", "url": "https://api.github.com/repos/sferik/rails_admin/issues/387", "labels": [ ], "number": 387, "comments": 0, "assignee": null, "pull_request": { "html_url": null, "diff_url": null, "patch_url": null }, "updated_at": "2011-04-28T13:58:25Z", "created_at": "2011-04-28T13:58:25Z", "closed_at": null, "state": "open", "body": "We need to manually update ckeditor fields before we post them through AJAX.\r\n\r\nSee https://github.com/bbenezech/rails_admin/commit/5d024d55d04c0dab8447abfc9dd9a0af6c1c69f8", "title": "Ajax posting of CKeditor fields", "milestone": null }, { "user": { "type": "User", "login": "alec-c4", "gravatar_url": "https://secure.gravatar.com/avatar/561f6b93e60563dabb66fb9802d06fa3?s=30&d=https://d3nwyuy0nl342s.cloudfront.net%2Fimages%2Fgravatars%2Fgravatar-140.png", "email": "alec@alec-c4.com", "html_url": "https://github.com/alec-c4", "url": "https://api.github.com/users/alec-c4", "company": "CyberBerry", "location": "Moscow, Russia", "blog": "http://alec-c4.com", "name": "Alexey Poimtsev", "created_at": "2008-09-19T07:47:03Z" }, "html_url": "https://github.com/sferik/rails_admin/issues/385", "url": "https://api.github.com/repos/sferik/rails_admin/issues/385", "labels": [ ], "number": 385, "comments": 0, "assignee": null, "pull_request": { "html_url": null, "diff_url": null, "patch_url": null }, "updated_at": "2011-04-27T21:04:26Z", "created_at": "2011-04-27T21:04:26Z", "closed_at": null, "state": "open", "body": "Hi,\r\ni have model called Flag\r\n class Flag < ActiveRecord::Base\r\n attr_accessible :report_type, :flaggeable_id, :flaggeable_type, :return_to\r\n ########## Associations\r\n belongs_to :author, :class_name => \"User\"\r\n belongs_to :flaggeable, :polymorphic => true\r\n end\r\n\r\nand when i attempting to access this model from rails_admin i see error\r\n\r\nNoMethodError in RailsAdmin::MainsController#list\r\n\r\nYou have a nil object when you didn't expect it!\r\nYou might have expected an instance of Array.\r\nThe error occurred while evaluating nil.map\r\n\r\nFull traces - http://pastie.org/1840863\r\nBut, when i have commented line belongs_to :flaggeable, :polymorphic => true everything works fine.\r\n\r\nCould you check please work with polymorphs?", "title": "polymorphic associations causes exception", "milestone": null }, { "user": { "type": "User", "login": "bbenezech", "gravatar_url": "https://secure.gravatar.com/avatar/c1607873b99845b2cd53f8634860d4d4?s=30&d=https://d3nwyuy0nl342s.cloudfront.net%2Fimages%2Fgravatars%2Fgravatar-140.png", "email": "benoit.benezech@gmail.com", "html_url": "https://github.com/bbenezech", "url": "https://api.github.com/users/bbenezech", "company": "", "location": "Paris, France", "blog": "", "name": "Benoit Bénézech", "created_at": "2008-09-29T20:55:27Z" }, "html_url": "https://github.com/sferik/rails_admin/issues/384", "url": "https://api.github.com/repos/sferik/rails_admin/issues/384", "labels": [ ], "number": 384, "comments": 0, "assignee": null, "pull_request": { "html_url": null, "diff_url": null, "patch_url": null }, "updated_at": "2011-04-27T18:59:00Z", "created_at": "2011-04-27T16:04:05Z", "closed_at": null, "state": "open", "body": "since commit https://github.com/sferik/rails_admin/commit/f7870747d211efaa36beb401c411e1517aa00da1\n\nhttps://github.com/sferik/rails_admin/blob/master/spec/lib/install_spec.rb\n\nand\n\nhttps://github.com/sferik/rails_admin/blob/master/spec/lib/uninstall_spec.rb\n\nchange Rails.configuration.root to some tmp folder to test installation stuff, and do not change it back to dummy_app root folder.\n\nPlease someone fix it, I tried and it drove me mad.", "title": "Build broken", "milestone": null }, { "user": { "type": "User", "login": "jmccartie", "gravatar_url": "https://secure.gravatar.com/avatar/544e2e76286098a2c64c3638401d2191?s=30&d=https://d3nwyuy0nl342s.cloudfront.net%2Fimages%2Fgravatars%2Fgravatar-140.png", "email": "", "html_url": "https://github.com/jmccartie", "url": "https://api.github.com/users/jmccartie", "company": "LifeChurch.tv", "location": "Edmond, OK", "blog": "http://blog.mccartie.com", "name": "Jon McCartie", "created_at": "2009-09-30T19:06:08Z" }, "html_url": "https://github.com/sferik/rails_admin/issues/383", "url": "https://api.github.com/repos/sferik/rails_admin/issues/383", "labels": [ ], "number": 383, "comments": 0, "assignee": null, "pull_request": { "html_url": null, "diff_url": null, "patch_url": null }, "updated_at": "2011-04-26T01:34:41Z", "created_at": "2011-04-25T21:23:34Z", "closed_at": null, "state": "open", "body": "Was attempting to add some [action caching](http://guides.rubyonrails.org/caching_with_rails.html#action-caching) to my app, but didn't know if rails_admin had the ability to expire caches. For example:\n\n class PagesController < ApplicationController\n caches_action :index\n\n def index\n @pages = Page.all\n end\n end\n\nIn order to invalidate this cache, I need to expire it (`expire_action :action => :index`), but since I don't have a create/update action (all done through rails_admin), not sure how to invalidate it.\n\nAssuming this doesn't exist, would love to have the ability to specify which models should perform those actions. (should probably be inclusive [not exclusive/default] and require adding to a config)\n\n(happy to take a stab at it -- just may need a few hints)\n\n ", "title": "Permit Action Caching", "milestone": null }, { "user": { "type": "User", "login": "markbates", "gravatar_url": "https://secure.gravatar.com/avatar/c6f2229ca2c8dcf0176f036508ec2c3b?s=30&d=https://d3nwyuy0nl342s.cloudfront.net%2Fimages%2Fgravatars%2Fgravatar-140.png", "email": "mark+github@markbates.com", "html_url": "https://github.com/markbates", "url": "https://api.github.com/users/markbates", "company": null, "location": "Boston, MA", "blog": "http://www.metabates.com", "name": "Mark Bates", "created_at": "2008-03-21T15:55:40Z" }, "html_url": "https://github.com/sferik/rails_admin/issues/382", "url": "https://api.github.com/repos/sferik/rails_admin/issues/382", "labels": [ ], "number": 382, "comments": 0, "assignee": null, "pull_request": { "html_url": "https://github.com/sferik/rails_admin/pull/382", "diff_url": "https://github.com/sferik/rails_admin/pull/382.diff", "patch_url": "https://github.com/sferik/rails_admin/pull/382.patch" }, "updated_at": "2011-04-25T17:52:26Z", "created_at": "2011-04-25T17:52:26Z", "closed_at": null, "state": "open", "body": "I encountered this in Postgres project that is using search vectors. The property type was coming in as nil for this field and subsequently blows up Rails Admin. I've set it to ignore this column entirely if the property type is nil.", "title": "Ignore field when property type is nil", "milestone": null }, { "user": { "type": "User", "login": "brodock", "gravatar_url": "https://secure.gravatar.com/avatar/2c8545cf821ed984bae91dcda758e105?s=30&d=https://d3nwyuy0nl342s.cloudfront.net%2Fimages%2Fgravatars%2Fgravatar-140.png", "email": "brodock@gmail.com", "html_url": "https://github.com/brodock", "url": "https://api.github.com/users/brodock", "company": null, "location": "Florianópolis, SC", "blog": "http://blog.gabrielmazetto.eti.br", "name": "Gabriel Mazetto", "created_at": "2008-08-13T19:34:17Z" }, "html_url": "https://github.com/sferik/rails_admin/issues/379", "url": "https://api.github.com/repos/sferik/rails_admin/issues/379", "labels": [ ], "number": 379, "comments": 0, "assignee": null, "pull_request": { "html_url": null, "diff_url": null, "patch_url": null }, "updated_at": "2011-04-22T00:33:33Z", "created_at": "2011-04-22T00:33:33Z", "closed_at": null, "state": "open", "body": "Imagine that for example:\r\n\r\na Model Product with a has_one association to a Item.\r\nWhen creating a Product, I would like to have all ˜Products\" and \"Item\" fields on the same screen.\r\n\r\nBy just saying that makes someone suggest that I shall append the \"item fields\" to the products table, but imagine that the \"Items table\" is not only for products, it can be used by many other models that has the need for that specifc information.\r\n\r\nThis should be configurable, as the select field approuch today, can be useful for someone this other approuch could be of some help to others like me that use this style of data modeling.", "title": "has_one associated model should optionaly be automatically created while creating the other one", "milestone": null }, { "user": { "type": "User", "login": "bbenezech", "gravatar_url": "https://secure.gravatar.com/avatar/c1607873b99845b2cd53f8634860d4d4?s=30&d=https://d3nwyuy0nl342s.cloudfront.net%2Fimages%2Fgravatars%2Fgravatar-140.png", "email": "benoit.benezech@gmail.com", "html_url": "https://github.com/bbenezech", "url": "https://api.github.com/users/bbenezech", "company": "", "location": "Paris, France", "blog": "", "name": "Benoit Bénézech", "created_at": "2008-09-29T20:55:27Z" }, "html_url": "https://github.com/sferik/rails_admin/issues/375", "url": "https://api.github.com/repos/sferik/rails_admin/issues/375", "labels": [ ], "number": 375, "comments": 0, "assignee": null, "pull_request": { "html_url": "https://github.com/sferik/rails_admin/pull/375", "diff_url": "https://github.com/sferik/rails_admin/pull/375.diff", "patch_url": "https://github.com/sferik/rails_admin/pull/375.patch" }, "updated_at": "2011-04-19T10:43:14Z", "created_at": "2011-04-19T10:43:14Z", "closed_at": null, "state": "open", "body": "issue #314\r\n", "title": "314 new menu", "milestone": null }, { "user": { "type": "User", "login": "bbenezech", "gravatar_url": "https://secure.gravatar.com/avatar/c1607873b99845b2cd53f8634860d4d4?s=30&d=https://d3nwyuy0nl342s.cloudfront.net%2Fimages%2Fgravatars%2Fgravatar-140.png", "email": "benoit.benezech@gmail.com", "html_url": "https://github.com/bbenezech", "url": "https://api.github.com/users/bbenezech", "company": "", "location": "Paris, France", "blog": "", "name": "Benoit Bénézech", "created_at": "2008-09-29T20:55:27Z" }, "html_url": "https://github.com/sferik/rails_admin/issues/372", "url": "https://api.github.com/repos/sferik/rails_admin/issues/372", "labels": [ ], "number": 372, "comments": 1, "assignee": null, "pull_request": { "html_url": null, "diff_url": null, "patch_url": null }, "updated_at": "2011-04-15T13:07:18Z", "created_at": "2011-04-15T07:57:03Z", "closed_at": null, "state": "open", "body": "This cause javascript problems (filtering multiselect not showing for example) when you open a form in popup with same field name as in parent form, since popups are not in iframes.\n\nI can see two possible follow-up : \n\n* Put the popup form in an iframe\n\n* Refactor the ids generation, and I can't see any good reason not to use a form builder\n\nSecond solution is better of course, it opens the possibility for nested attributes and form factorisation, and better maintainability.\nSimple form and formtastic are interesting options.\n\nAny opinion on this ?", "title": "Form fields ids are not unique.", "milestone": null }, { "user": { "type": "User", "login": "aunderwo", "gravatar_url": "https://secure.gravatar.com/avatar/c1e8f7f62a20b3030463b1bc908f0f5d?s=30&d=https://d3nwyuy0nl342s.cloudfront.net%2Fimages%2Fgravatars%2Fgravatar-140.png", "email": "github@ants.oib.com", "html_url": "https://github.com/aunderwo", "url": "https://api.github.com/users/aunderwo", "company": null, "location": "Watford, UK", "blog": null, "name": "Anthony Underwood", "created_at": "2008-02-19T17:30:53Z" }, "html_url": "https://github.com/sferik/rails_admin/issues/370", "url": "https://api.github.com/repos/sferik/rails_admin/issues/370", "labels": [ { "url": "https://api.github.com/repos/sferik/rails_admin/labels/bug", "color": "ff9c9c", "name": "bug" } ], "number": 370, "comments": 5, "assignee": { "type": "User", "login": "kaapa", "gravatar_url": "https://secure.gravatar.com/avatar/40a0afa49eb7b12db4dcda70b2e1520d?s=30&d=https://d3nwyuy0nl342s.cloudfront.net%2Fimages%2Fgravatars%2Fgravatar-140.png", "email": "petteri.kaapa@gmail.com", "html_url": "https://github.com/kaapa", "url": "https://api.github.com/users/kaapa", "company": null, "location": "Finland", "blog": null, "name": "Petteri Kääpä", "created_at": "2010-03-03T23:01:52Z" }, "pull_request": { "html_url": null, "diff_url": null, "patch_url": null }, "updated_at": "2011-04-29T06:10:46Z", "created_at": "2011-04-09T15:01:22Z", "closed_at": null, "state": "open", "body": "When viewing a model that has a polymorphic association (via belongs to) I am getting the following problem:\r\n\r\n You have a nil object when you didn't expect it!\r\n You might have expected an instance of Array.\r\n The error occurred while evaluating nil.map\r\n\r\ntrace is\r\n\r\n /Users/anthony/.rvm/gems/ruby-1.9.2-p0/bundler/gems/rails_admin-1ee2f2af816b/lib/rails_admin/config/fields/types/polymorphic_association.rb:33:in `associated_model_config'\r\n /Users/anthony/.rvm/gems/ruby-1.9.2-p0/bundler/gems/rails_admin-1ee2f2af816b/lib/rails_admin/config/fields/types/polymorphic_association.rb:21:in `block in '\r\n /Users/anthony/.rvm/gems/ruby-1.9.2-p0/bundler/gems/rails_admin-1ee2f2af816b/lib/rails_admin/config/base.rb:83:in `instance_eval'\r\n /Users/anthony/.rvm/gems/ruby-1.9.2-p0/bundler/gems/rails_admin-1ee2f2af816b/lib/rails_admin/config/base.rb:83:in `block in register_instance_option'\r\n /Users/anthony/.rvm/gems/ruby-1.9.2-p0/bundler/gems/rails_admin-1ee2f2af816b/lib/rails_admin/config/base.rb:57:in `block in register_instance_option'\r\n /Users/anthony/.rvm/gems/ruby-1.9.2-p0/bundler/gems/rails_admin-1ee2f2af816b/lib/rails_admin/config/has_fields.rb:60:in `block in visible_fields'\r\n /Users/anthony/.rvm/gems/ruby-1.9.2-p0/bundler/gems/rails_admin-1ee2f2af816b/lib/rails_admin/config/has_fields.rb:60:in `select'\r\n /Users/anthony/.rvm/gems/ruby-1.9.2-p0/bundler/gems/rails_admin-1ee2f2af816b/lib/rails_admin/config/has_fields.rb:60:in `visible_fields'\r\n /Users/anthony/.rvm/gems/ruby-1.9.2-p0/bundler/gems/rails_admin-1ee2f2af816b/app/controllers/rails_admin/main_controller.rb:339:in `list_entries'\r\n /Users/anthony/.rvm/gems/ruby-1.9.2-p0/bundler/gems/rails_admin-1ee2f2af816b/app/controllers/rails_admin/main_controller.rb:36:in `list'\r\n\r\nI'm sure this used to work fine in earlier versions of rails_admin :(", "title": "Polymorphic association problem", "milestone": { "open_issues": 26, "url": "https://api.github.com/repos/sferik/rails_admin/milestones/4", "description": "The first gem release", "creator": { "type": "User", "login": "sferik", "gravatar_url": "https://secure.gravatar.com/avatar/1f74b13f1e5c6c69cb5d7fbaabb1e2cb?s=30&d=https://d3nwyuy0nl342s.cloudfront.net%2Fimages%2Fgravatars%2Fgravatar-140.png", "email": "sferik@gmail.com", "html_url": "https://github.com/sferik", "url": "https://api.github.com/users/sferik", "company": "Code for America", "location": "San Francisco", "blog": "http://twitter.com/sferik", "name": "Erik Michaels-Ober", "created_at": "2008-05-14T20:36:12Z" }, "number": 4, "due_on": "2011-08-01T07:00:00Z", "created_at": "2011-04-10T02:44:04Z", "state": "open", "title": "0.0", "closed_issues": 4 } }, { "user": { "type": "User", "login": "dustMason", "gravatar_url": "https://secure.gravatar.com/avatar/e9ed2af775174211429aae4d5e7805c6?s=30&d=https://d3nwyuy0nl342s.cloudfront.net%2Fimages%2Fgravatars%2Fgravatar-140.png", "email": null, "html_url": "https://github.com/dustMason", "url": "https://api.github.com/users/dustMason", "company": "Genuine Parts, LLC", "location": "Oakland, CA", "blog": "http://specifyapp.com", "name": "Jordan Sitkin", "created_at": "2010-08-19T01:05:32Z" }, "html_url": "https://github.com/sferik/rails_admin/issues/366", "url": "https://api.github.com/repos/sferik/rails_admin/issues/366", "labels": [ { "url": "https://api.github.com/repos/sferik/rails_admin/labels/bug", "color": "ff9c9c", "name": "bug" } ], "number": 366, "comments": 2, "assignee": null, "pull_request": { "html_url": null, "diff_url": null, "patch_url": null }, "updated_at": "2011-04-27T18:04:15Z", "created_at": "2011-04-04T20:23:28Z", "closed_at": null, "state": "open", "body": "I have a model with the primary key of \"merchant_id\". When trying to view the model data in rails_admin I get an error\r\n ActiveRecord::StatementInvalid in RailsAdmin::MainsController#list\r\nI'm using the ActiveRecord adaptor (as indicated in the error). I'm assuming this is due to the use of *find_by_id* in some places, rather than *find*. While *find_by_id* makes sense because it returns *nil* when the record cant be found, it precludes the ability to use ActiveRecord to set any primary key value on a model.\r\n\r\nAfter altering the *get* method in /lib/rails_admin/adapters/active_record.rb to use *find* instead of *find_by_id*, this is the error I see:\r\n PGError: ERROR: column \"id\" does not exist\r\n LINE 1: SELECT \"stores\".* FROM \"stores\" ORDER BY id desc LIMIT 20 O...\r\n ^\r\n : SELECT \"stores\".* FROM \"stores\" ORDER BY id desc LIMIT 20 OFFSET 0\r\nand the relevant part of the full trace:\r\n /Users/turtle/Documents/CodeLibrary/rails_admin_master/lib/rails_admin/adapters/active_record.rb:46:in `all'\r\n /Users/turtle/Documents/CodeLibrary/rails_admin_master/lib/rails_admin/adapters/active_record.rb:60:in `paginated'\r\n /Users/turtle/Documents/CodeLibrary/rails_admin_master/app/controllers/rails_admin/main_controller.rb:348:in `list_entries'\r\n /Users/turtle/Documents/CodeLibrary/rails_admin_master/app/controllers/rails_admin/main_controller.rb:36:in `list'", "title": "Error when trying to administrate models with primary keys named anything but \"id\"", "milestone": { "open_issues": 26, "url": "https://api.github.com/repos/sferik/rails_admin/milestones/4", "description": "The first gem release", "creator": { "type": "User", "login": "sferik", "gravatar_url": "https://secure.gravatar.com/avatar/1f74b13f1e5c6c69cb5d7fbaabb1e2cb?s=30&d=https://d3nwyuy0nl342s.cloudfront.net%2Fimages%2Fgravatars%2Fgravatar-140.png", "email": "sferik@gmail.com", "html_url": "https://github.com/sferik", "url": "https://api.github.com/users/sferik", "company": "Code for America", "location": "San Francisco", "blog": "http://twitter.com/sferik", "name": "Erik Michaels-Ober", "created_at": "2008-05-14T20:36:12Z" }, "number": 4, "due_on": "2011-08-01T07:00:00Z", "created_at": "2011-04-10T02:44:04Z", "state": "open", "title": "0.0", "closed_issues": 4 } }, { "user": { "type": "User", "login": "amrnt", "gravatar_url": "https://secure.gravatar.com/avatar/1be13b794a692d0b083fb52485eb22ea?s=30&d=https://d3nwyuy0nl342s.cloudfront.net%2Fimages%2Fgravatars%2Fgravatar-140.png", "email": "amrnt0@gmail.com", "html_url": "https://github.com/amrnt", "url": "https://api.github.com/users/amrnt", "company": "", "location": "Nablus, PS", "blog": "http://rushthinking.com", "name": "Amr Numan Tamimi", "created_at": "2008-08-24T16:59:34Z" }, "html_url": "https://github.com/sferik/rails_admin/issues/362", "url": "https://api.github.com/repos/sferik/rails_admin/issues/362", "labels": [ { "url": "https://api.github.com/repos/sferik/rails_admin/labels/bug", "color": "ff9c9c", "name": "bug" } ], "number": 362, "comments": 13, "assignee": { "type": "User", "login": "caboteria", "gravatar_url": "https://secure.gravatar.com/avatar/e381ef5e90b6ed2bd5082a9a463cea3b?s=30&d=https://d3nwyuy0nl342s.cloudfront.net%2Fimages%2Fgravatars%2Fgravatar-140.png", "email": null, "html_url": "https://github.com/caboteria", "url": "https://api.github.com/users/caboteria", "company": null, "location": "Massachusetts, USA", "blog": "http://www.caboteria.org/", "name": "toby cabot", "created_at": "2009-05-15T21:51:49Z" }, "pull_request": { "html_url": null, "diff_url": null, "patch_url": null }, "updated_at": "2011-04-22T14:03:11Z", "created_at": "2011-04-01T09:31:43Z", "closed_at": null, "state": "open", "body": "In the `admin/:model` the search form must not point to `/rails_admin/main/list`...\r\nPlease check it I have the same error in the whole `list` pages of the models\r\n\r\nAmr", "title": "Error in the `action` of the search form of models in `list` page", "milestone": { "open_issues": 26, "url": "https://api.github.com/repos/sferik/rails_admin/milestones/4", "description": "The first gem release", "creator": { "type": "User", "login": "sferik", "gravatar_url": "https://secure.gravatar.com/avatar/1f74b13f1e5c6c69cb5d7fbaabb1e2cb?s=30&d=https://d3nwyuy0nl342s.cloudfront.net%2Fimages%2Fgravatars%2Fgravatar-140.png", "email": "sferik@gmail.com", "html_url": "https://github.com/sferik", "url": "https://api.github.com/users/sferik", "company": "Code for America", "location": "San Francisco", "blog": "http://twitter.com/sferik", "name": "Erik Michaels-Ober", "created_at": "2008-05-14T20:36:12Z" }, "number": 4, "due_on": "2011-08-01T07:00:00Z", "created_at": "2011-04-10T02:44:04Z", "state": "open", "title": "0.0", "closed_issues": 4 } }, { "user": { "type": "User", "login": "dustMason", "gravatar_url": "https://secure.gravatar.com/avatar/e9ed2af775174211429aae4d5e7805c6?s=30&d=https://d3nwyuy0nl342s.cloudfront.net%2Fimages%2Fgravatars%2Fgravatar-140.png", "email": null, "html_url": "https://github.com/dustMason", "url": "https://api.github.com/users/dustMason", "company": "Genuine Parts, LLC", "location": "Oakland, CA", "blog": "http://specifyapp.com", "name": "Jordan Sitkin", "created_at": "2010-08-19T01:05:32Z" }, "html_url": "https://github.com/sferik/rails_admin/issues/361", "url": "https://api.github.com/repos/sferik/rails_admin/issues/361", "labels": [ { "url": "https://api.github.com/repos/sferik/rails_admin/labels/bug", "color": "ff9c9c", "name": "bug" } ], "number": 361, "comments": 2, "assignee": null, "pull_request": { "html_url": null, "diff_url": null, "patch_url": null }, "updated_at": "2011-04-10T02:55:45Z", "created_at": "2011-03-30T22:22:49Z", "closed_at": null, "state": "open", "body": "I have a model event.rb:\r\n class Event < ActiveRecord::Base\r\n serialize :data\r\n belongs_to :user\r\n end\r\n class ProductAddedEvent < Event; end\r\n class CollectionCreatedEvent < Event; end\r\n class FollowingEvent < Event; end\r\n class FollowedEvent < Event; end\r\n class CommentAddedEvent < Event; end\r\nwhich seems to be causing Rails Admin (latest version as of today) to throw an error when I try to look at any model:\r\n\tuninitialized constant CollectionCreatedEvent\r\n\r\nExtracted Source:\r\n\t1: <%\r\n\t2: max_visible_tabs = RailsAdmin::Config::Sections::Navigation.max_visible_tabs\r\n\t3: models = RailsAdmin::Config.visible_models.select { |model| authorized?(:list, model.abstract_model) }\r\n\t4: %>\r\n\t5: