saasbook / rottenpotatoes-rails-intro Goto Github PK
View Code? Open in Web Editor NEWRottenPotatoes app skeleton for saasbook/hw-rails-intro
RottenPotatoes app skeleton for saasbook/hw-rails-intro
The codio directions live in a second repo, we should have an action sync them.
When I fork this repo, clone it to my c9 ide, and do the following:
I expect the page to open on the index page, but it opens on the Welcome aboard page instead.
The output from the server indicates that it can't find a route that matches [GET] "/assets/rails.png"
(???)
Started GET "/assets/rails.png" for 71.188.237.7 at 2017-03-19 00:57:02 +0000
Cannot render console from 71.188.237.7! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
ActionController::RoutingError (No route matches [GET] "/assets/rails.png"):
actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
web-console (2.3.0) lib/web_console/middleware.rb:20:in `block in call'
web-console (2.3.0) lib/web_console/middleware.rb:18:in `catch'
web-console (2.3.0) lib/web_console/middleware.rb:18:in `call'
actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.2.6) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.2.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
rack (1.6.4) lib/rack/runtime.rb:18:in `call'
activesupport (4.2.6) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
rack (1.6.4) lib/rack/lock.rb:17:in `call'
actionpack (4.2.6) lib/action_dispatch/middleware/static.rb:120:in `call'
rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
railties (4.2.6) lib/rails/engine.rb:518:in `call'
railties (4.2.6) lib/rails/application.rb:165:in `call'
rack (1.6.4) lib/rack/lock.rb:17:in `call'
rack (1.6.4) lib/rack/content_length.rb:15:in `call'
rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
/usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
/usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
/usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/webrick/server.rb:296:in `block in start_thread'
Rendered /usr/local/rvm/gems/ruby-2.3.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms)
Rendered /usr/local/rvm/gems/ruby-2.3.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.3ms)
Rendered /usr/local/rvm/gems/ruby-2.3.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.4ms)
Rendered /usr/local/rvm/gems/ruby-2.3.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (10.2ms)
Rendered /usr/local/rvm/gems/ruby-2.3.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (49.4ms)
In order to get to the movies page, I must first refresh the page, and then I am at root:
Started GET "/" for 71.188.237.7 at 2017-03-19 01:13:07 +0000
Cannot render console from 71.188.237.7! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by MoviesController#index as HTML
Movie Load (0.3ms) SELECT "movies".* FROM "movies"
Rendered movies/index.html.haml within layouts/application (22.6ms)
Completed 200 OK in 228ms (Views: 211.2ms | ActiveRecord: 0.7ms)
Question: Why am I getting a RoutingError initially?
Could this possibly be some kind of c9 artifact??
The application behaves (mostly) properly after this point, but I don't understand why it starts up in this strange initial state with an error msg.
I checked, and routes.rb is being rooted properly, so it should start on the correct page.
Would be great to do this sometime.
https://github.com/saasbook/hw-rails-intro/blob/master/docs/part_0_A.md
On Codio, students must add the line config.hosts = nil
to config/environments/development.rb
, change the preview static button to box URL, and run rails server with the command rails server -b 0.0.0.0
. These instructions are present (with screenshots) in the former Codio version of the instructions but are missing here.
Keep getting security vulnerability message when I forked this repo!
Codio seems to pull instructions for this HW from https://github.com/saasbook/hw-rails-intro. Yet this repo has a subfolder called instructions with an older version of these instructions. If updates will continue at https://github.com/saasbook/hw-rails-intro, this subfolder should probably get deleted. Since students clone/fork from this repo, they will take these instructions right into their project workspace while we hope they follow the similar but updated version in https://github.com/saasbook/hw-rails-intro.
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.