Skip to content

Instantly share code, notes, and snippets.

View stevavoliajvar's full-sized avatar

Stevan stevavoliajvar

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<title>Random Quote Machine</title>
</head>
<!DOCTYPE html>
<html>
<head>
<title><%= full_title(yield(:title)) %></title>
<%= stylesheet_link_tag "application", media: "all",
"data-turbolinks-track" => true %>
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
<%= csrf_meta_tags %>
<%= render 'layouts/shim' %> -- this one is fine
</head>
class StaticPagesController < ApplicationController
def home
end
def help
end
def about
end
end
SystemStackError in StaticPagesController#home
stack level too deep
Extracted source (around line #180):
entries = self.entries(dirname)
entries.each do |entry|
name, type, _, _ = parse_path_extnames(entry)
if basename == name
candidates << [File.join(dirname, entry), type]
end