ruby
文章平均质量分 60
iteye_19166
这个作者很懒,什么都没留下…
展开
-
WARNING: Global access to Rake DSL methods is deprecated. Please include
在运行rake脚本的时候,出现这样的警告:WARNING: Global access to Rake DSL methods is deprecated. Please include ... Rake::DSL into classes and modules which use the Rake DSL methods.WARNING: DSL method [b]...原创 2011-09-21 10:19:18 · 133 阅读 · 0 评论 -
运行passenger-install-nginx-module时出undefined reference to symbol 'pow@@GLIBC_2.错误
-lpthread -lcrypt -lm /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.9/ext/nginx/../common/libpassenger_common.a /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.9/ext/nginx/../common/libboost_oxt.a -...原创 2011-09-22 20:25:19 · 788 阅读 · 0 评论 -
no such file to load -- robots
no such file to load -- robots/usr/local/lib/ruby/gems/1.8/gems/anemone-0.6.1/lib/anemone/core.rb:2:in `require'/usr/local/lib/ruby/gems/1.8/gems/anemone-0.6.1/lib/anemone/core.rb:2/usr/local/li...原创 2011-09-22 20:45:44 · 131 阅读 · 0 评论 -
如何写rails插件
如何实现一个简单的插件?下面实现一个在model中能输出hello world的插件。注:()中的斜体是本人的心得体会,可忽略。 第一步,在工程目录下新建一个插件,运行rails generate plugin HelloWorld 这个命令会生成以下目录文件: create vendor/plugins/hello_world create ven...2012-02-03 13:06:20 · 124 阅读 · 0 评论 -
如何写gem
第一步:用bundle gem gem_name生成基本结构,如下:[root@arch demo]$ bundle gem rename_url create rename_url/Gemfile create rename_url/Rakefile create rename_url/.gitignore create ren...2012-02-03 16:42:22 · 154 阅读 · 0 评论