Ich habe an einem Rails app to conglomerate directories pulled from IPFS gearbeitet. Aus irgendeinem Grund, app/views/layouts/application.html.erb
isn't rendering.Warum werden meine Assets nicht in Rails 4 gerendert?
Jeder IPFS-Eintrag verfügt über ein entsprechendes ActiveRecord-Modell. Die relevanten Teile routes.rb
sind:
Rails.application.routes.draw do
resources :entries, path: :e, constraints: { id: /.*/ }
root 'entries#index'
end
Die index
Wirkung von EntriesController
ist:
class EntriesController < ApplicationController
def index
@entries = @space.roots
end
end
Mein application.html.erb
ist:
<!DOCTYPE html>
<html>
<head>
<title>Tip</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
<body>
<% if notice %>
<p class="alert alert-success"><%= notice %></p>
<% end %>
<% if alert %>
<p class="alert alert-danger"><%= alert %></p>
<% end %>
<%= yield %>
</body>
</html>
ich die Super-Klasse Konstruktor aufzurufen benötigt. Danke, dass Sie mir geholfen haben, es zu finden. Ich war benommen. – Will