The trouble with this approach is that your message handler is called many times to notify you of events that are not relevant for your plug-in.
这种方法的弊端是,消息处理程序将被多次调用来向您通知事件,而这些事件可能与您的插件无关。
Note: If you're having trouble with this task, there is a sample plug-in download that has all the models already made for you.
注意:如果您在执行此任务时遇到问题,您可以下载一个样例插件,此插件为您准备好了所有模型。
If that seems like too much trouble to do manually, the rails_iui plug-in contains a set of Rake tasks that will download and install iui, including changing the URLs in the CSS file.
如果觉得手工完成这些步骤比较复杂,可以使用rails_iui插件所包含的一组Rake任务,它可以下载并安装iui,包括在CSS文件中更改url。
应用推荐