Skip to content
Ruby curse first app
Ruby JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
test
vendor
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Welcome to my first APP

  1. At the command prompt, create a new Rails application: rails new myapp (where myapp is the application name)

    |-- app |Ruby on Rails Tutorial: Learn Rails by Example |-- assets *| |-- images | |-- javascripts

  2. # | -- stylesheets | |-- controllers | |-- helpers | |-- mailers | |-- models |-- views | -- layouts |-- config | |-- environments | |-- initializers |-- locales |-- db |-- doc |-- lib | -- tasks |-- log |-- public |-- script |-- test | |-- fixtures | |-- functional | |-- integration | |-- performance |-- unit |-- tmp | |-- cache | |-- pids | |-- sessions | -- sockets -- vendor |-- assets -- stylesheets -- plugins

app Holds all the code that's specific to this particular application.

app/assets Contains subdirectories for images, stylesheets, and JavaScript files.

app/controllers Holds controllers that should be named like weblogs_controller.rb for automated URL mapping. All controllers should descend from ApplicationController which itself descends from ActionController::Base.

Something went wrong with that request. Please try again.