time_splitter gem getting uninitialized constant Sheet::TimeSplitter

笑着哭i 提交于 2019-12-24 10:45:46

问题


I have installed the time_splitter gem so that I can use a single date_time field. My bundle includes version 1.0.0. As recommended here, I added this code to my class Sheet:

extend TimeSplitter::Accessors
split_accessor :event_time

I am getting an error on the extend:

NameError in SheetsController#new
uninitialized constant Sheet::TimeSplitter

I'm about to give up and hack together a date/time solution but was hoping for something more elegant. Thanks in advance for your help.


回答1:


You need to restart your server. Happened to me :)



来源:https://stackoverflow.com/questions/29858627/time-splitter-gem-getting-uninitialized-constant-sheettimesplitter

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