I am trying to use rails_admin route in two ways
- = link_to "Users", rails_admin.index_path(:model_name => 'user')
- = render rails_admin.index_path(:model_name => 'user')
First one works fine, when click on the 'Users' link it navigate to the raisl_admin users list page with rails_admin layout. Where as second is not working it tries to fetch the layout from my app, so I am getting the error
Missing partial /rails_admin/user with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :haml, :slim]}
What is the difference between these two links? How to get the second one to work?