learn-co-curriculum / rails-static-request-readme Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
it looks like this is more like a lab/code along not readme since it asks to open config/routes.rb file and add the following route inside of the draw block:
get 'about', to: 'static#about'
but there are no files to fork to follow along.
Hi there, I had to add the following items to my VSCode from the rails-static-request-readme
lab for the server to boot up properly in this lab. Wanted to let you all know about it!
Inside: app/assets
Added this folder: config
In config folder, added this file: manifest.js
In manifest.js, added this code:
//= link_tree ../images
//= link_directory ../javascripts .js
//= link_directory ../stylesheets .css
I was receiving this error before I added that code:
=> Booting Puma
=> Rails 5.0.7.1 application starting in development on http://localhost:3000
=> Run rails server -h
for more startup options
Exiting
Traceback (most recent call last):
34: from bin/rails:4:in <main>' 33: from bin/rails:4:in
require'
32: from /Users/Moose/.rvm/gems/ruby-2.6.1/gems/railties-5.0.7.1/lib/rails/commands.rb:18:in <top (required)>' 31: from /Users/Moose/.rvm/gems/ruby-2.6.1/gems/railties-5.0.7.1/lib/rails/commands/commands_tasks.rb:49:in
run_command!'
30: from /Users/Moose/.rvm/gems/ruby-2.6.1/gems/railties-5.0.7.1/lib/rails/commands/commands_tasks.rb:85:in server' 29: from /Users/Moose/.rvm/gems/ruby-2.6.1/gems/railties-5.0.7.1/lib/rails/commands/commands_tasks.rb:85:in
tap'
28: from /Users/Moose/.rvm/gems/ruby-2.6.1/gems/railties-5.0.7.1/lib/rails/commands/commands_tasks.rb:90:in block in server' 27: from /Users/Moose/.rvm/gems/ruby-2.6.1/gems/railties-5.0.7.1/lib/rails/commands/server.rb:102:in
start'
26: from /Users/Moose/.rvm/gems/ruby-2.6.1/gems/railties-5.0.7.1/lib/rails/commands/server.rb:148:in log_to_stdout' 25: from /Users/Moose/.rvm/gems/ruby-2.6.1/gems/rack-2.2.3/lib/rack/server.rb:422:in
wrapped_app'
24: from /Users/Moose/.rvm/gems/ruby-2.6.1/gems/railties-5.0.7.1/lib/rails/commands/server.rb:84:in app' 23: from /Users/Moose/.rvm/gems/ruby-2.6.1/gems/rack-2.2.3/lib/rack/server.rb:249:in
app'
22: from /Users/Moose/.rvm/gems/ruby-2.6.1/gems/rack-2.2.3/lib/rack/server.rb:349:in build_app_and_options_from_config' 21: from /Users/Moose/.rvm/gems/ruby-2.6.1/gems/rack-2.2.3/lib/rack/builder.rb:66:in
parse_file'
20: from /Users/Moose/.rvm/gems/ruby-2.6.1/gems/rack-2.2.3/lib/rack/builder.rb:105:in load_file' 19: from /Users/Moose/.rvm/gems/ruby-2.6.1/gems/rack-2.2.3/lib/rack/builder.rb:116:in
new_from_string'
18: from /Users/Moose/.rvm/gems/ruby-2.6.1/gems/rack-2.2.3/lib/rack/builder.rb:116:in eval' 17: from /Users/Moose/Development/Flatiron/labs/rails-static-request-readme-onl01-seng-ft-090820/config.ru:3:in
block in
require' 15: from /Users/Moose/Development/Flatiron/labs/rails-static-request-readme-onl01-seng-ft-090820/config/environment.rb:5:in
<top (required)>'initialize!' 13: from /Users/Moose/.rvm/gems/ruby-2.6.1/gems/railties-5.0.7.1/lib/rails/initializable.rb:54:in
run_initializers'tsort_each' 11: from /Users/Moose/.rvm/rubies/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:226:in
tsort_each'each_strongly_connected_component' 9: from /Users/Moose/.rvm/rubies/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:347:in
call'each' 7: from /Users/Moose/.rvm/rubies/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:349:in
block in each_strongly_connected_component'each_strongly_connected_component_from' 5: from /Users/Moose/.rvm/rubies/ruby-2.6.1/lib/ruby/2.6.0/tsort.rb:350:in
block (2 levels) in each_strongly_connected_component'block in tsort_each' 3: from /Users/Moose/.rvm/gems/ruby-2.6.1/gems/railties-5.0.7.1/lib/rails/initializable.rb:55:in
block in run_initializers'run' 1: from /Users/Moose/.rvm/gems/ruby-2.6.1/gems/railties-5.0.7.1/lib/rails/initializable.rb:30:in
instance_exec'block in <class:Railtie>': Expected to find a manifest file in
app/assets/config/manifest.js` (Sprockets::Railtie::ManifestNeededError)Example:
//= link_tree ../images
//= link_directory ../javascripts .js
//= link_directory ../stylesheets .css
and restart your server
For more information see: https://github.com/rails/sprockets/blob/070fc01947c111d35bb4c836e9bb71962a8e0595/UPGRADING.md#manifestjs
This lab forks/opens as a readme, and i cant find a rspec environment to test out of this lab.
The lab wont advance correctly or show completion.
The lesson went over how to make a static route, but never goes into talking about dynamic route even though it has it in the title AND takes a moment to talk about the differences between static and dynamic.
No mention is made about the rails directory this lesson is working in. I am assuming it is the previous directory 'blog-flash', but it should be specified exactly in the lesson which repo we are working in.
at this URL the page doesn't load. I believe this is the right lesson?
says to run rails server, but not clear from which directory. references config/routes.rb which is not in the master code.
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.