Rails Admin: No edit, show, or delete buttons for Rails 4 app

为君一笑 提交于 2019-12-13 14:09:41

问题


Using rails_admin for a very basic Rails 4 application.

However, whenever I open up the dashboard (mounted at '/admin'), I do not see the edit, show, or delete link buttons for each of my records.

Interestingly, if I manually go to the show or edit routes (i.e. /admin/products/1 or /admin/products/1/edit) the page shows up just fine and works as expected.

Is there a configuration to turn these links on?

Thanks for your help.


回答1:


I figured it out!

It turned out to be a conflict with Bootstrap/FontAwesome between my application and rails_admin.

I was using Bootstrap 3 along with FontAwesome 4 whereas the version of rails_admin I'm using (0.5.0) was using Bootstrap 2 with FontAwesome 3.

Since rails_admin was meant to use the old FontAwesome, it was using the old-style syntax (e.g. 'icon icon-pencil') instead of the new-style (e.g. 'fa fa-pencil'). Because of this, the icons were not showing up.

I resolved this by removing FontAwesome 4 from my app (I wasn't using it much anyway) and letting rails_admin use the version of FontAwesome is was bundled with.



来源:https://stackoverflow.com/questions/20198679/rails-admin-no-edit-show-or-delete-buttons-for-rails-4-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!