部署代码时,生产服务器上未出现时间过滤器图标。反而出现破碎的图像,我明白了
资产编译错误
.
这是 wice_grid 中的一个常见错误,其中未为资产管道正确设置图标。以下解决问题。
在/initializers/wice_grid_config.rb
中,将此行添加到 Wice::Defaults::CALENDAR_ICON
# Icon to popup the calendar.
Wice::Defaults::CALENDAR_ICON = "https://raw.github.com/leikind/wice_grid/rails3/vendor/assets/images/icons/grid/calendar_view_month.png"