1

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

4
  • What window were you trying to open? What is on the associated line in app/views/layouts/application.html.erb? Commented Mar 9, 2016 at 0:23
  • And the error in English? Commented Mar 9, 2016 at 1:57
  • i use GoogleChrome to open. and line 5 & 6 in application.html is the following: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>. The error in English: 'typeerror object doesn't support this property or method' Commented Mar 9, 2016 at 8:39
  • just found a way to solve this problem... theres a little programm which i had to install on windows : nodejs.org/en --- by using this, its possible to write js functions and include stylesheets as like on linux :) Commented Mar 9, 2016 at 14:07

1 Answer 1

2

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 %>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.