learn-co-curriculum / sinatra-views Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
due date: 9/15/2015
Is http://localhost:9393/ the most likely location of any user's shotgun
sample? Would it be better to point the user to the shotgun
command's output for the location? E.g. here's what my output was:
[14:52:58] (master) sinatra-views-cb-000 // โฅ shotgun == Shotgun/Thin on http://138.68.11.226:30000/ Thin web server (v1.6.3 codename Protein Powder) Maximum connections set to 1024 Listening on 138.68.11.226:30000, CTRL+C to stop
Hi. It looks like the section "Part 3: Multiple Routes with Multiple Views" repeats a few sentences that were in "Part 1: Rendering HTML". In Part 3, you have this paragraph:
"Run shotgun
and go to http://localhost:9393 or the IP Address:PORT provided by the Learn IDE. Your "Hello World" text should now appear as an <h1>
. Nice! With shotgun
running, head to http://localhost:9393/info . You should see "Testing the info page" rendered there. This lets us know that our route is defined properly. Next, let's have this route render a separate file instead. Inside of the views
directory, create a file called info.erb
. Add whatever HTML code you like."
The part of the paragraph that I bolded and italicized is from Part 1 and is not needed in Part 3.
Thanks for looking into this!
Sdcrouse
Hi. Let me preface this by saying that I may be nitpicking here, so please feel free to take it or leave it. I noticed that in Part 3 of this lab, there's a sentence that says, "Add whatever HTML code you like." Then, it shows the following HTML:
<!DOCTYPE html>
<html>
<head>
<title>Info Page</title>
</head>
<body>
<h1>Info Page</h1>
<p>This is the info page: here's some information about me!</p>
</body>
</html>
I think the sentence that I mentioned needs to be changed to something like "Add the following code into that file, and whatever else you like:".
My reason for this is that the tests won't pass without that specific HTML, contrary to what the original sentence implies.
Thanks for looking into this!
Sdcrouse
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.