-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rails g install error #613
Comments
The source of this error was a has_many through association in one of my models.. I don't understand why because everything in my db/model is set up correctly I was able to run the installer successfully after removing that association from one of my models |
Closing as this should be fixed with #713. Please open an issue if that's not the case! |
@nickcharlton I got the same problem for rails 5.1.3 and administrate 0.8.1. /home/ckgagan/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/activerecord-5.1.3/lib/active_record/reflection.rb:1013:in |
@ckgagan If this is a problem you're still having, could you open a new issue with details of your model setup/etc so we can try and replicate it? Thanks! |
I haven't been able to install administrate
Already took a look at #516 but still no luck
Running via Spring preloader in process 8585
'identical app/controllers/admin/application_controller.rb
identical app/dashboards/user_dashboard.rb
identical app/controllers/admin/users_controller.rb
/.gem/ruby/2.3.0/gems/activerecord-4.2.6/lib/active_record/reflection.rb:883:in
derive_class_name': undefined method
class_name' for nil:NilClass (NoMethodError)Did you mean? class_eval
from /.gem/ruby/2.3.0/gems/activerecord-4.2.6/lib/active_record/reflection.rb:157:in
class_name' from /.gem/ruby/2.3.0/gems/administrate-0.2.2/lib/generators/administrate/dashboard/dashboard_generator.rb:111:in
relationship_options_string'from /.gem/ruby/2.3.0/gems/administrate-0.2.2/lib/generators/administrate/dashboard/dashboard_generator.rb:98:in
association_type' from /.gem/ruby/2.3.0/gems/administrate-0.2.2/lib/generators/administrate/dashboard/dashboard_generator.rb:61:in
redundant_attributes_for'from /.gem/ruby/2.3.0/gems/administrate-0.2.2/lib/generators/administrate/dashboard/dashboard_generator.rb:56:in
block in redundant_attributes' from /.gem/ruby/2.3.0/gems/administrate-0.2.2/lib/generators/administrate/dashboard/dashboard_generator.rb:55:in
each'from /.gem/ruby/2.3.0/gems/administrate-0.2.2/lib/generators/administrate/dashboard/dashboard_generator.rb:55:in
flat_map' from /.gem/ruby/2.3.0/gems/administrate-0.2.2/lib/generators/administrate/dashboard/dashboard_generator.rb:55:in
redundant_attributes'from /.gem/ruby/2.3.0/gems/administrate-0.2.2/lib/generators/administrate/dashboard/dashboard_generator.rb:47:in
attributes' from (erb):11:in
template'from /.rubies/ruby-2.3.0/lib/ruby/2.3.0/erb.rb:864:in
eval' from /.rubies/ruby-2.3.0/lib/ruby/2.3.0/erb.rb:864:in
result'from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:116:in
block in template' from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:53:in
render'from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:46:in
identical?' from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:72:in
on_conflict_behavior'from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:113:in
invoke_with_conflict_check' from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:60:in
invoke!'from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/actions.rb:94:in
action' from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:25:in
create_file'from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:115:in
template' from /.gem/ruby/2.3.0/gems/railties-4.2.6/lib/rails/generators/named_base.rb:26:in
block in template'from /.gem/ruby/2.3.0/gems/railties-4.2.6/lib/rails/generators/named_base.rb:60:in
inside_template' from /.gem/ruby/2.3.0/gems/railties-4.2.6/lib/rails/generators/named_base.rb:25:in
template'from /.gem/ruby/2.3.0/gems/administrate-0.2.2/lib/generators/administrate/dashboard/dashboard_generator.rb:30:in
create_dashboard_definition' from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in
run'from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in
invoke_command' from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in
block in invoke_all'from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in
each' from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in
map'from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in
invoke_all' from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/group.rb:232:in
dispatch'from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in
start' from /.gem/ruby/2.3.0/gems/railties-4.2.6/lib/rails/generators.rb:157:in
invoke'from /.gem/ruby/2.3.0/gems/administrate-0.2.2/lib/administrate/generator_helpers.rb:4:in
call_generator' from /.gem/ruby/2.3.0/gems/administrate-0.2.2/lib/generators/administrate/install/install_generator.rb:27:in
block in run_dashboard_generators'from /.gem/ruby/2.3.0/gems/administrate-0.2.2/lib/generators/administrate/install/install_generator.rb:26:in
each' from /.gem/ruby/2.3.0/gems/administrate-0.2.2/lib/generators/administrate/install/install_generator.rb:26:in
run_dashboard_generators'from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in
run' from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in
invoke_command'from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in
block in invoke_all' from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in
each'from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in
map' from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in
invoke_all'from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/group.rb:232:in
dispatch' from /.gem/ruby/2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in
start'from /.gem/ruby/2.3.0/gems/railties-4.2.6/lib/rails/generators.rb:157:in
invoke' from /.gem/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/generate.rb:13:in
<top (required)>'from /.gem/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in
require' from /.gem/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in
block in require'from /.gem/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in
load_dependency' from /.gem/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in
require'from /.gem/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:123:in
require_command!' from /.gem/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:130:in
generate_or_destroy'from /.gem/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:50:in
generate' from /.gem/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in
run_command!'from /.gem/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands.rb:17:in
<top (required)>' from /.gem/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in
require'from /.gem/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in
block in require' from /.gem/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in
load_dependency'from /.gem/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in
require' from /bin/rails:9:in
<top (required)>'from /.gem/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in
load' from /.gem/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in
block in load'from /.gem/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in
load_dependency' from /.gem/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in
load'from /.rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
require' from /.rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
require'from -e:1:in `
The text was updated successfully, but these errors were encountered: