Skip to content

Commit

Permalink
Updated text in template.
Browse files Browse the repository at this point in the history
  • Loading branch information
neocsr committed Feb 22, 2012
1 parent b39a79b commit 599d170
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions views/index.erb
@@ -1,8 +1,8 @@
<h2>This is a neat Sinatra template!</h2>

<pre>
This is the source code for the sinatra-template project on github.
It's the basic structure I use for my Sinatra projects and it make things a bit more organized.
This is the source code for the sinatra-template project on github.
It's the basic structure I use for my Sinatra projects and it make things a bit more organized.

What's inside?
--------------
Expand All @@ -19,16 +19,16 @@ Folders Structure

app.rb # require sinatra, vendor'd gems, models/init, routes/init, helpers/init

helpers/
helpers/
init.rb # Require each helper file
helper1.rb # Related helper methods

models/
models/
init.rb # Require each model, in controlled order
user.rb # model
picture.rb # model

routes/
routes/
init.rb # Require each route, in controlled order
user.rb # One or more routes related to some feature
admin.rb # One or more routes related to administration
Expand All @@ -37,17 +37,17 @@ Folders Structure
layout.erb # Common layout
index.erb # Specific view

test/
test/
models # minitest
routes # rack-test
interaction # capybara + minitest

Setup
-----

Install Ruby 1.9.3 (if necessary). RVM is optional, but highly recommended
Install Ruby 1.9.2 (if necessary). RVM is optional, but highly recommended

rvm install ruby-1.9.3-p125
rvm install ruby-1.9.2-p290
git clone https://github.com/oren/sinatra-template.git
cd sinatra-template (it will create sinatra-template gemset)

Expand All @@ -73,9 +73,14 @@ View all available rake commands

Run the server

shotun
bundle exec rackup

Go to [http://127.0.0.1:9393](http://127.0.0.1:9393)
Go to <a href="http://127.0.0.1:9292">http://127.0.0.1:9292</a>

IRB console testing

RACK_ENV=development irb
:001 &gt; require './app'
</pre>

<p><%= @flash %><p>
Expand Down

0 comments on commit 599d170

Please sign in to comment.