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 (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Tue Jun 02 15:08:52 -0700 2009 | |
| |
README.mdown | Wed Jun 03 12:00:23 -0700 2009 | |
| |
Rakefile | Mon Jun 01 17:05:27 -0700 2009 | |
| |
app/ | Tue Jun 02 16:26:24 -0700 2009 | |
| |
config/ | Tue Jun 02 16:07:24 -0700 2009 | |
| |
db/ | Tue Jun 02 16:22:58 -0700 2009 | |
| |
doc/ | Mon Jun 01 17:05:27 -0700 2009 | |
| |
lib/ | Tue Jun 02 15:00:04 -0700 2009 | |
| |
public/ | Tue Jun 02 16:07:24 -0700 2009 | |
| |
script/ | Tue Jun 02 15:00:04 -0700 2009 | |
| |
spec/ | Tue Jun 02 16:07:24 -0700 2009 | |
| |
test/ | Mon Jun 01 17:05:27 -0700 2009 |
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







