This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 155f9cb66b72e73fd9b4479afb05bc340d230657
tree 13092aec1b4f8e84ccdcb8f63ee698209e724459
parent d10874c5bbdb523ee600945fb49bc1f43f0a473d
tree 13092aec1b4f8e84ccdcb8f63ee698209e724459
parent d10874c5bbdb523ee600945fb49bc1f43f0a473d
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
README.mdown | ||
| |
Rakefile | ||
| |
app/ | ||
| |
config/ | ||
| |
db/ | ||
| |
doc/ | ||
| |
lib/ | ||
| |
public/ | ||
| |
script/ | ||
| |
spec/ | ||
| |
test/ |
README.mdown
Tech talk sample application
How to install Rails
sudo gem install rails
Create the application
rails url_shortener
Install the RSpec-Rails gem
Edit environments/test.rb and add the following
Then run
rake gems:install RAILS_ENV=test
script/generate rspec
If you are using Rubymine
- Go to Project Settings > Ruby SDK and Gems
- Click 'Attach gems'
- Add Rspec
- Add Rspec-rails
Model
Generate the Url model
script/generate rspec_model Url
Modify the generated migration to create the database schema
rake db:migrate db:test:prepare
Modify the generated model spec. Add tests for your model.
Controller
script/server








