<commit_before># Scajax [![Build Status](https://travis-ci.org/menuitem/scajax.png?branch=master)](https://travis-ci.org/menuitem/scajax) [![Gem Version](https://badge.fury.io/rb/scajax.png)](http://badge.fury.io/rb/scajax)

This gem quickly adds a basic ajax functionality to generated scaffold in rails.

## Installation

Add this line to your application's Gemfile:

    gem 'scajax'

or for the latest version of the gem add:

    gem 'scajax', git: '<EMAIL>:menuitem/scajax.git'

And then execute bundle:

    $ bundle

Also you can install it yourself in your system gems as:

    $ gem install scajax

## Usage

    $ rails g scajax [RESOURCE_NAME]


### Quick Simple Example:


1. Add scajax to your application's Gemfile:

		gem 'scajax'

2. Run 'bundle' to install this gem in your project:

		$ bundle

3. Generate new scaffold called e.g. posts:

		$ rails generate scaffold post title body:text published:boolean

4. Don't forget to run migration:

		$ rake db:migrate

5. Generate ajax for posts scaffold with scajax generator:

		$ rails g scajax post

Open your project in a browser.

### Quick Example with twitter-bootstrap:

1. Add to your application's Gemfile:

		gem 'scajax'
		gem 'twitter-bootstrap-rails'

2. Run 'bundle' to install gems in your project:

		$ bundle

3. Install twitter-bootstrap:

		$ rails generate bootstrap:install static

4. Generate new scaffold called e.g. posts:

        $ rails generate scaffold post title body:text published:boolean --no-stylesheets

5. Don't forget to run migration:

        $ rake db:migrate

6. Generate boootstrap themed for posts

        $ rails g bootstrap:themed posts

7. Generate ajax for posts scaffold with scajax generator

        $ rails g scajax post

Open your project in a browser.

(8.) If you have somehow file 'scaffolds.css.scss' and you don't use it just delete it:
        $ rm app/assets/stylesheets/scaffolds.css.scss

Refresh your browser (F5).

### Quick Example with zurb-foundation:

1. Add to your application's Gemfile:

        gem 'scajax'
        gem 'zurb-foundation'

2. And run 'bundle' to install gems in your project:

        $ bundle

3. Install zurb-foundation:

        $ rails g foundation:install

4. Generate new scaffold called e.g. posts:

        $ rails generate scaffold post title body:text published:boolean --no-styelsheets

5. Don't forget to run migration:

        $ rake db:migrate

6. Generate ajax for posts scaffold with scajax generator:

        $ rails g scajax post

Open your project in a browser.

(7) If you have somehow file 'scaffolds.css.scss' and you don't use it just delete it:
        $ rm app/assets/stylesheets/scaffolds.css.scss

Refresh your browser (F5). 


## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
<commit_msg>Initial commit<commit_after># Scajax [![Build Status](https://travis-ci.org/menuitem/scajax.png?branch=master)](https://travis-ci.org/menuitem/scajax) [![Gem Version](https://badge.fury.io/rb/scajax.png)](http://badge.fury.io/rb/scajax)

This gem quickly adds a basic ajax functionality to generated scaffold in rails.

## Installation

Add this line to your application's Gemfile:

    gem 'scajax'

or for the latest version of the gem add:

    gem 'scajax', git: '<EMAIL>:menuitem/scajax.git'

And then execute bundle:

    $ bundle

Also you can install it yourself in your system gems as:

    $ gem install scajax

## Usage

    $ rails g scajax [RESOURCE_NAME]


### Quick Simple Example:


1. Add scajax to your application's Gemfile:

		gem 'scajax'

2. Run 'bundle' to install this gem in your project:

		$ bundle

3. Generate new scaffold called e.g. posts:

		$ rails generate scaffold post title body:text published:boolean

4. Don't forget to run migration:

		$ rake db:migrate

5. Generate ajax for posts scaffold with scajax generator:

		$ rails g scajax post

Open your project in a browser.

### Quick Example with twitter-bootstrap:

1. Add to your application's Gemfile:

		gem 'scajax'
		gem 'twitter-bootstrap-rails'

2. Run 'bundle' to install gems in your project:

		$ bundle

3. Install twitter-bootstrap:

		$ rails generate bootstrap:install static

4. Generate new scaffold called e.g. posts:

        $ rails generate scaffold post title body:text published:boolean --no-stylesheets

5. Don't forget to run migration:

        $ rake db:migrate

6. Generate boootstrap themed for posts

        $ rails g bootstrap:themed posts

7. Generate ajax for posts scaffold with scajax generator

        $ rails g scajax post

Open your project in a browser.

(8) If you have somehow file 'scaffolds.css.scss' and you don't use it just delete it:

        $ rm app/assets/stylesheets/scaffolds.css.scss

Refresh your browser (F5).

### Quick Example with zurb-foundation:

1. Add to your application's Gemfile:

        gem 'scajax'
        gem 'zurb-foundation'

2. And run 'bundle' to install gems in your project:

        $ bundle

3. Install zurb-foundation:

        $ rails g foundation:install

4. Generate new scaffold called e.g. posts:

        $ rails generate scaffold post title body:text published:boolean --no-styelsheets

5. Don't forget to run migration:

        $ rake db:migrate

6. Generate ajax for posts scaffold with scajax generator:

        $ rails g scajax post

Open your project in a browser.

(7) If you have somehow file 'scaffolds.css.scss' and you don't use it just delete it:

$ rm app/assets/stylesheets/scaffolds.css.scss

Refresh your browser (F5). 


## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

{'fraction_non_alphanumeric': 0.08806626098715348, 'fraction_numerical': 0.009127789046653144, 'mean_word_length': 3.2783803326102676, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4749136', 'n_tokens_mistral': 1951, 'n_tokens_neox': 1765, 'n_words': 731}