I am trying to use rails_admin route in two ways
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?
The render is looking for a partial file like /rails_admin/_user.html.erb
to include within your current view. Note that using render
in a view is different than using render
in a controller. The filename being rendered is prepended with a _
and by default it uses the current view's layout.
http://guides.rubyonrails.org/layouts_and_rendering.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With