MrKnorke
MrKnorke

Reputation: 183

Ruby on Rails Application coult not include stylesheet nor js

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 ...

Upvotes: 1

Views: 434

Answers (1)

amadjai
amadjai

Reputation: 21

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 %>

Upvotes: 2

Related Questions