我還使用rails_admin作爲報告工具,並利用導出到CSV功能提取特定數據。這工作正常,但我需要現在篩選基於2日期之間的數據的結果,但日期是在通過has_many關係鏈接的模型上。 下面是一個例子 class Patient < ActiveRecord::Base
has_many :appointments
end
class Appointment < ActiveRec
正如標題所示,當我嘗試訪問localhost:3000/admin的管理面板時,我遇到了Sass:StyntaxError in RailsAdmin::MainController#dashboardFile to import not found or unreadable: font-awesome。我在其他領域的應用程序中使用了font-awesome。我嘗試了大多數其他解決方案而沒有任何
我使用RoR 4.1和RailsAdmin 0.6.8。我可以通過定義模型上的方法和包括它經由 field :custom_method
或FORMATTED_VALUE field :custom_field do
formatted_value{ bindings[:object].something_here }
end
創建在RA自定義字段的問題是我不能排序在列表視圖中該列。任