Problem with edit User entity from rails_admin #1455

Closed
JohnBat26 opened this Issue Dec 24, 2012 · 5 comments

Comments

Projects
None yet
2 participants

Hi.
Recently I start to get error:

No route matches {:action=>"show", :model_name=>"user", :id=>nil, :locale=>:ru, :controller=>"rails_admin/main"}

when I try to edit any user.
I use devise. And all works ok in past.

my routes:
Routes for RailsAdmin::Engine:
dashboard GET / rails_admin/main#dashboard
index GET|POST /:model_name(.:format) rails_admin/main#index
new GET|POST /:model_name/new(.:format) rails_admin/main#new
export GET|POST /:model_name/export(.:format) rails_admin/main#export
bulk_delete POST|DELETE /:model_name/bulk_delete(.:format) rails_admin/main#bulk_delete
history_index GET /:model_name/history(.:format) rails_admin/main#history_index
bulk_action POST /:model_name/bulk_action(.:format) rails_admin/main#bulk_action
show GET /:model_name/:id(.:format) rails_admin/main#show
edit GET|PUT /:model_name/:id/edit(.:format) rails_admin/main#edit
delete GET|DELETE /:model_name/:id/delete(.:format) rails_admin/main#delete
history_show GET /:model_name/:id/history(.:format) rails_admin/main#history_show
show_in_app GET /:model_name/:id/show_in_app(.:format) rails_admin/main#show_in_app

and I use mongoid-3.0.15, devise and cancan

LOG
[2012-12-28 23:07:43] [INFO ]
[2012-12-28 23:07:43] [INFO ]
[2012-12-28 23:07:43] [INFO ] Started GET "/portal/rails_admin/user/50ddeaea8621ff5d3000000b/edit?locale=ru" for 127.0.0.1 at 2012-12-28 23:07:43 +0400
Processing by RailsAdmin::MainController#edit as HTML
Parameters: {"locale"=>"ru", "model_name"=>"user", "id"=>"50ddeaea8621ff5d3000000b"}
Rendered /home/johnbat26/.rvm/gems/ruby-1.9.3-p327-perf@webex/gems/rails_admin-0.3.0/app/views/rails_admin/main/_form_text.html.haml (0.7ms)
Rendered /home/johnbat26/.rvm/gems/ruby-1.9.3-p327-perf@webex/gems/rails_admin-0.3.0/app/views/rails_admin/main/_form_field.html.haml (0.2ms)
Rendered /home/johnbat26/.rvm/gems/ruby-1.9.3-p327-perf@webex/gems/rails_admin-0.3.0/app/views/rails_admin/main/_form_field.html.haml (0.3ms)
Rendered /home/johnbat26/.rvm/gems/ruby-1.9.3-p327-perf@webex/gems/rails_admin-0.3.0/app/views/rails_admin/main/_form_field.html.haml (0.4ms)
Rendered /home/johnbat26/.rvm/gems/ruby-1.9.3-p327-perf@webex/gems/rails_admin-0.3.0/app/views/rails_admin/main/_form_text.html.haml (0.4ms)
Rendered /home/johnbat26/.rvm/gems/ruby-1.9.3-p327-perf@webex/gems/rails_admin-0.3.0/app/views/rails_admin/main/_form_text.html.haml (0.4ms)
Rendered /home/johnbat26/.rvm/gems/ruby-1.9.3-p327-perf@webex/gems/rails_admin-0.3.0/app/views/rails_admin/main/edit.html.haml within layouts/rails_admin/application (54.3ms)
Completed 500 Internal Server Error in 76ms
[2012-12-28 23:07:43] [FATAL]
ActionController::RoutingError (No route matches {:action=>"show", :model_name=>"user", :id=>nil, :locale=>:ru, :controller=>"rails_admin/main"}):
app/controllers/application_controller.rb:69:in `set_time_zone'

Problem with Mongoid versioning.
If using versions ( include Mongoid::Versioning) then rails_admin don't open entity and go to endless loop

Collaborator

mshibuya commented Jan 24, 2013

Could you paste full stack trace of RoutingError?

And for Mongoid versioning, there is already opened issue(#1451).

Collaborator

mshibuya commented Feb 25, 2014

Please reopen if the problem still exists.

@mshibuya mshibuya closed this Feb 25, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment