Ruby on Rails v5.1.1

0

Dear network, I am starting to develop Ruby on Rails and I am faced with the following problem.

The controller was created in the following way: rails g controller Pages inicio

The driver code is as follows:

The Application.html.erb file has the following code

The version of nodejs installed is v8.1.2

The version of Rails is v5.1.1

Ruby's version is v2.3.3

Gemfile File

'source' link '

git_source (: github) do | repo_name |   repo_name="# {repo_name} / # {repo_name}" unless repo_name.include? ("/")   " link {repo_name} .git" end '

Of course, I thank you in advance for the help to solve this problem

New imageError

    
asked by grandtjs 23.06.2017 в 03:06
source

1 answer

0

It is a problem that apparently is common in windows; to solve it you must update your file application.html.erb changing these lines:

<%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>

for these:

<%= stylesheet_link_tag    'default', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'default', 'data-turbolinks-track': 'reload' %>

This change has worked for me with rails 5.0; the only drawback is that you should change the code again when you pass your code to a server not windows.

    
answered by 23.06.2017 / 04:22
source