I cannot see the apps running using 'Preview'.
The Ruby environment with the Rails framework is installed (able to see folders and files generated), and see application being built in Nitrous.IO IDE.
My installation shows I have the following installed:
- ruby 2.1.1p76
- Rails 4.1.0
- git version 2.0.0
- SQLite3Building a simple blog app, I use the scaffold generator to create the MVC components needed for posts and comments:
1. $ rails generate scaffold post title:string body:text
2. $ rails generate scaffold comment post_id:integer body:textI create the post and comment database tables using:
1. $ rake db:migrate
2. $ rake routes
3. $ rails serverUsing 'Preview' to see app running on WEBrick, only get default webpage which says:
- "Routes are set up in the config/routes.rb"
- "running in development mode and haven't set a root route yet."config/routes.rb file has the following:
Rails.application.routes.draw.do
resources :comments
resources :posts
# lines 6 -> 59 are comments giving coding examples of routes
end
==>> What do I need to do to 'Preview' Ruby apps??
Part of the output from the WEBrick server running shows port=3000, so and the example says that, "Port 3000 is automatically forwarded to port 80. This means if your app is running on port 3000 then you will not need to include a port in the address bar."
I've tried it with and without the 'port' descripter, and just get the default webpage, so No Joy for me yet. – Wayne Ryder Aug 24 '14 at 01:15