在TextMate中,我无法使用Rails tmbundle创建局部视图
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:355:in `to_plist': An object in the argument tree could not be converted (ArgumentError) from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:355:in `request_string_core' from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:193:in `request_string' from /Users/pma/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle/Support/bin/create_partial_from_selection.rb:23:in `'
我安装了RoR软件包: https : //github.com/drnic/ruby-on-rails-tmbundle.git
使用rvm。
你在使用Ruby 1.9吗? Textmate中的osx-plist.bundle不适用于Ruby 1.9。 要修复它,您可以按照Loren Segal的描述进行更新。 我已稍微更改它们以构建您想要的任何位置并创建支持目录:
$ git clone git://github.com/kballard/osx-plist.git $ cd osx-plist/ext/plist $ ruby extconf.rb && make $ mkdir -p "$HOME/Library/Application Support/TextMate/Support/lib/osx" $ cp plist.bundle "$_"
如果你使用Textmate2并遇到与上面相同的错误(与plist bundle相关),请使用上面答案中提到的相同修复程序, https://stackoverflow.com/a/7029278/206814只有目标目录不是
"$HOME/Library/Application Support/TextMate/Support/lib/osx"
但应该是
"$HOME/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/osx"
覆盖此目录中的plist.bundle,然后您应该停止查看因使用Ruby 1.9而发生的错误。
- 安装Ruby on Rails但是当我尝试运行Rails Sever时它不加载WEBrick?
- save(false)和save(:validate => false)之间的区别
- Rails,设计。 除非AdminUser,否则禁止用户操作
- 当每个请求的app id和app secret不同时,请使用omniauth-facebook?
- 何时应该在Rails中使用`DateTime.now.utc`与`Time.current.utc`?
- 条纹“提供的API密钥无效”
- 使用Ruby on Rails集成Shipping
- skip_before_filter忽略条件
- 在私人商店文件夹中的rails 3.1中显示带有carrierwave的图像