This is what your default project looks like when you use
Your project looks like this. Most it's guts will be in
[(text)] project/ |- app/ | |- css/ # CSS files | |- js/ # JS files | | | |- models/ # Models | |- helpers/ # Helpers | |- routes/ # Sinatra Routes | |- views/ # View files | | | |- init/ # Ruby files to be ran on app init | |- migrations/ # Data migration files | |- config/ # User config |- public/ # Public files | |- config.ru |- Gemfile |- init.rb |- Rakefile |- README.md
This contains your CSS files. Anything here will be accessible via
app/css/style.css app/css/theme/screen.sass app/css/theme/print.css
Models here. All Ruby files here will be loaded on app init.
app/models/page.rb app/models/book.rb app/models/movie.rb
Helpers here. All Ruby files here will be loaded on app init.
Sinatra routes here. All Ruby files here will be loaded on app init.
app/routes/store.rb app/routes/background.rb # Example: class Main get '/foo' do show :foo end end