Beast 1.0貌似只能在Rails 2.0 底下跑。建议用Ruby186。187跟2.02有点小兼容性问题。
错误信息类似这样:undefined method 'length' for #<Enumerable::Enumerator:0x243a7a4>
解决办法: 修改config/environment.rb 重写TextHelper(ActionView)的truncate方法
module ActionView
module Helpers
module TextHelper
def truncate(text, length = 30, truncate_string = "...")
if text.nil? then return end
l = length - truncate_string.chars.to_a.size
(text.chars.to_a.size > length ? text.chars.to_a[0...l].join + truncate_string : text).to_s
end
end
end
end
beast说RedCloth插件是可选的…但是不装就出错… gem install RedCloth -v 3.0.4
删除beast 目录下的 \vendor\plugins 中的 exception_logger 重新安装:
在beast工程根目录下执行
ruby script/plugin install http://svn.techno-weenie.net/projects/plugins/exception_logger/ --force
一切就绪之后rake db:schema:load 加载数据库 启动即可。
分享到:
相关推荐
BEAST SUPER SIGNAL MT4 INDICATOR
资源分类:Python库 所属语言:Python 资源全名:beast2-xml-1.0.11.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
使用方法:1)安装$ wget https://codeload.github.com/liexusong/php-beast/zip/php7$ unzip php-beast-php7.zip$ cd php-beast-php7$ phpize$ ./configure$ sudo make && make install2)修改php.ini 添加配置:...
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
BBC.The.World.At.War.1973.EP01-EP26.BluRay.720p.DTS.x264-beAst