Ruby on Rails Application coult not include stylesheet nor js

匿名 (未验证) 提交于 2019-12-03 09:06:55

问题:

Im working at a windows 8.1 64bit computer and jetzt succeed in creating a scaffold when i found the next problem .... these are the commands i executed:

rails new obs cd obs rails generate scaffold Customer name:string rake db:migrate rails s 

but i cant open the window because of this error:

TypeError: Das Objekt unterstützt diese Eigenschaft oder Methode nicht. Rails.root: C:/Users/Adrian/Documents/Bumblebee

Application Trace | Framework Trace | Full Trace app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb__353703031_44962284'

i havent changed anything at the created files. but cant see any problems ...

回答1:

You have to change the code application to default like this:-

 <%= stylesheet_link_tag    "default", media: "all", "data-turbolinks-track" => true %> <%= javascript_include_tag "default", "data-turbolinks-track" => true %> 


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!