<commit_before>
About
-----

I needed a solid base to build my own rails projects from. Since integrating all these disparate pieces isn't the easiest thing in the world, I decided to release this sample site in the hope that it would save you some time as well.

The demo application is designed to provide a solid, generic skeleton to base your next rails project on, and includes everything you'll need to dive straight in and get started.

Demo Site
---------

You can try out a live demo of the project at [railskitchensink.com](http://railskitchensink.com/). The database will be automatically re-generated every hour, so don't be surprised if any changes disappear.

License
-------

This project is distributed under the [MIT License](http://en.wikipedia.org/wiki/MIT_license). See the [License](https://github.com/recurser/rails-kitchen-sink/blob/master/LICENSE) file for details.

Installation
------------

To get started, first download the source via git

```bash
> git clone git://recursive-design.com/rails-kitchen-sink.git
> cd rails-kitchen-sink
```

Next, install the requisite gems:

```bash
> gem install bundler
> bundle install
```

Set up the database:

```bash
> rake db:setup
```

Finally, run the local development server to try it out:

```bash
> rails s
```

The demo application should now be available at [http://localhost:3000/](http://localhost:3000/).

What's Included?
----------------

I've tried to create a sensible base to start build your Rails 3 applications off of, with all the packages I generally use pre-integrated. _Rails Kitchen Sink_ currently combines:

* [Devise](http://github.com/plataformatec/devise) authentication.
* [CanCan](http://github.com/ryanb/cancan) authorization.
* [HAML](http://haml-lang.com/) templates.
* [CoffeeScript](http://jashkenas.github.com/coffee-script/) support.
* [metric_fu](http://metric-fu.rubyforge.org/) reports.
* Full [RSpec](http://rspec.info/) test suite.
* [Spork](http://github.com/timcharper/spork) DRb server.
* [960](http://960.gs/) CSS grid system.
* [Jammit](http://documentcloud.github.com/jammit/) asset packaging.
* [Formtastic](http://github.com/justinfrench/formtastic) forms.


Testing
-------

_Rails Kitchen Sink_ comes pre-configured for [Spork](http://github.com/timcharper/spork) and [autotest](http://www.zenspider.com/ZSS/Products/ZenTest/#rsn) support. I generally work by running _spork_ in one terminal:

```bash
> cd rails-kitchen-sink
> spork
Using RSpec
Loading Spork.prefork block...
Spork is ready and listening on 8989!
```

... and running _autotest_ in another:

```bash
> cd rails-kitchen-sink
> autotest
........................................................................................

Finished in 29.27 seconds
88 examples, 0 failures
```

Autotest will run the test suite automatically whenever you save changes, and if you're working on OSX, it will provide [Growl](http://growl.info/) feedback every time the test suite is run:

!http://recursive-design.com/images/projects/rails-kitchen-sink/autotest_growl_notification.png!

Deploying To Heroku
-------------------<commit_msg>Fixed image tag.<commit_after>
About
-----

I needed a solid base to build my own rails projects from. Since integrating all these disparate pieces isn't the easiest thing in the world, I decided to release this sample site in the hope that it would save you some time as well.

The demo application is designed to provide a solid, generic skeleton to base your next rails project on, and includes everything you'll need to dive straight in and get started.

Demo Site
---------

You can try out a live demo of the project at [railskitchensink.com](http://railskitchensink.com/). The database will be automatically re-generated every hour, so don't be surprised if any changes disappear.

License
-------

This project is distributed under the [MIT License](http://en.wikipedia.org/wiki/MIT_license). See the [License](https://github.com/recurser/rails-kitchen-sink/blob/master/LICENSE) file for details.

Installation
------------

To get started, first download the source via git

```bash
> git clone git://recursive-design.com/rails-kitchen-sink.git
> cd rails-kitchen-sink
```

Next, install the requisite gems:

```bash
> gem install bundler
> bundle install
```

Set up the database:

```bash
> rake db:setup
```

Finally, run the local development server to try it out:

```bash
> rails s
```

The demo application should now be available at [http://localhost:3000/](http://localhost:3000/).

What's Included?
----------------

I've tried to create a sensible base to start build your Rails 3 applications off of, with all the packages I generally use pre-integrated. _Rails Kitchen Sink_ currently combines:

* [Devise](http://github.com/plataformatec/devise) authentication.
* [CanCan](http://github.com/ryanb/cancan) authorization.
* [HAML](http://haml-lang.com/) templates.
* [CoffeeScript](http://jashkenas.github.com/coffee-script/) support.
* [metric_fu](http://metric-fu.rubyforge.org/) reports.
* Full [RSpec](http://rspec.info/) test suite.
* [Spork](http://github.com/timcharper/spork) DRb server.
* [960](http://960.gs/) CSS grid system.
* [Jammit](http://documentcloud.github.com/jammit/) asset packaging.
* [Formtastic](http://github.com/justinfrench/formtastic) forms.


Testing
-------

_Rails Kitchen Sink_ comes pre-configured for [Spork](http://github.com/timcharper/spork) and [autotest](http://www.zenspider.com/ZSS/Products/ZenTest/#rsn) support. I generally work by running _spork_ in one terminal:

```bash
> cd rails-kitchen-sink
> spork
Using RSpec
Loading Spork.prefork block...
Spork is ready and listening on 8989!
```

... and running _autotest_ in another:

```bash
> cd rails-kitchen-sink
> autotest
........................................................................................

Finished in 29.27 seconds
88 examples, 0 failures
```

Autotest will run the test suite automatically whenever you save changes, and if you're working on OSX, it will provide [Growl](http://growl.info/) feedback every time the test suite is run:

!(http://recursive-design.com/images/projects/rails-kitchen-sink/autotest_growl_notification.png)

Deploying To Heroku
-------------------
{'fraction_non_alphanumeric': 0.15901060070671377, 'fraction_numerical': 0.008352071956312239, 'mean_word_length': 3.447857142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4283874', 'n_tokens_mistral': 1957, 'n_tokens_neox': 1798, 'n_words': 642}