Ruby on rails 错误版本的ruby on ubuntu
我在ubuntu 12.04上的rails项目中遇到以下错误:Ruby on rails 错误版本的ruby on ubuntu,ruby-on-rails,ubuntu-12.04,Ruby On Rails,Ubuntu 12.04,我在ubuntu 12.04上的rails项目中遇到以下错误: SyntaxError in Home#index Showing /home/ivan/rails/punto37/app/views/home/index.html.erb where line #14 raised: compile error /home/ivan/rails/punto37/app/views/home/index.html.erb:14: syntax error, unexpected ':' ..
SyntaxError in Home#index
Showing /home/ivan/rails/punto37/app/views/home/index.html.erb where line #14 raised:
compile error
/home/ivan/rails/punto37/app/views/home/index.html.erb:14: syntax error, unexpected ':'
... PARTITA','/games/new', class: 'btn btn-large btn-primary' )...
问题是所使用的哈希语法是针对ruby 1.9.x的
我似乎在使用ruby 1.8.7而不是1.9,但在终端:
$ ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]
$ rails -v
Rails 3.2.12
有人能帮我吗?你是如何运行你的服务器的?在布局/应用程序中呈现home/index.html.erb(4.0ms)在21ms中完成了500个内部服务器错误ActionView::Template::Error(编译错误/home/ivan/rails/punto37/app/views/home/index.html.erb:14:语法错误,意外的“:”…PARTITA“,“/games/new”,类:“btn btn large btn primary”)……例如,您是使用
rails s
还是使用Apache启动服务器?