没有 bitnami 的 Redmine ruby 在 rails 在 Windows 7
Redmine without bitnami ruby on rails on Windows 7
我安装并配置了所有内容,但当我尝试进入我的站点时出现此错误:
我输入了 http:\localhost:3000 并向我展示了那个错误;
Showing C:/xampp/htdocs/dev-ruby/redmine/app/views/layouts/base.html.erb where line #15 raised:
TypeError: El objeto no acepta esta propiedad o método
Rails.root: C:/xampp/htdocs/dev-ruby/redmine
Application Trace | Framework Trace | Full Trace
app/helpers/application_helper.rb:1192:in `stylesheet_link_tag'
app/views/layouts/base.html.erb:15:in `_app_views_layouts_base_html_erb___1528543778_53155600'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
我查看了我的 base.html.erb 文件,错误停止在这些行中:
<%= stylesheet_link_tag 'jquery/jquery-ui-1.11.0', 'application', 'responsive', :media => 'all' %>
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
<%= javascript_heads %>
我查看了那些 files:application_helper.rb 和 fordawable.rb 的文件。
但我不知道如何使用数据库或 gemms 文件正确解析它。
我使用我自己的 "solution",它改变了 "base.html.erb" 与另一个改变行:
<link rel="stylesheet" media="all" href="/stylesheets/jquery/jquery-ui-1.11.0.css" />
<link rel="stylesheet" media="all" href="/themes/classic/stylesheets/application.css" />
<link rel="stylesheet" media="all" href="/stylesheets/responsive.css" />
但这不是正确的解决方案。如果有人能提供正确的解决方案,我将不胜感激。我正在搜索,如果我找到什么,我会 post 它。
我发现 post 解决了部分问题
更改该行的默认应用程序:
<%= stylesheet_link_tag 'jquery/jquery-ui-1.11.0', 'default', 'responsive', :media => 'all' %>
但现在另一行似乎有问题:
<%= javascript_heads %>
解决办法就在那post:
我们可以把这个放在 Gemfile 中:
gem 'coffee-script-source', '1.8.0'
然后 运行 该命令:
bundle update coffee-script-source
我安装并配置了所有内容,但当我尝试进入我的站点时出现此错误:
我输入了 http:\localhost:3000 并向我展示了那个错误;
Showing C:/xampp/htdocs/dev-ruby/redmine/app/views/layouts/base.html.erb where line #15 raised:
TypeError: El objeto no acepta esta propiedad o método
Rails.root: C:/xampp/htdocs/dev-ruby/redmine
Application Trace | Framework Trace | Full Trace
app/helpers/application_helper.rb:1192:in `stylesheet_link_tag'
app/views/layouts/base.html.erb:15:in `_app_views_layouts_base_html_erb___1528543778_53155600'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
我查看了我的 base.html.erb 文件,错误停止在这些行中:
<%= stylesheet_link_tag 'jquery/jquery-ui-1.11.0', 'application', 'responsive', :media => 'all' %>
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
<%= javascript_heads %>
我查看了那些 files:application_helper.rb 和 fordawable.rb 的文件。
但我不知道如何使用数据库或 gemms 文件正确解析它。 我使用我自己的 "solution",它改变了 "base.html.erb" 与另一个改变行:
<link rel="stylesheet" media="all" href="/stylesheets/jquery/jquery-ui-1.11.0.css" />
<link rel="stylesheet" media="all" href="/themes/classic/stylesheets/application.css" />
<link rel="stylesheet" media="all" href="/stylesheets/responsive.css" />
但这不是正确的解决方案。如果有人能提供正确的解决方案,我将不胜感激。我正在搜索,如果我找到什么,我会 post 它。
我发现 post 解决了部分问题
更改该行的默认应用程序:
<%= stylesheet_link_tag 'jquery/jquery-ui-1.11.0', 'default', 'responsive', :media => 'all' %>
但现在另一行似乎有问题:
<%= javascript_heads %>
解决办法就在那post:
我们可以把这个放在 Gemfile 中:
gem 'coffee-script-source', '1.8.0'
然后 运行 该命令:
bundle update coffee-script-source