<commit_before>MrWizard
========

MrWizard makes it easy to create wizards for your Rails app. It provides the
base classes for your wizard's controller and steps, and a generator that you
can use to easily generate the files needed for your wizard.


Usage
=====

    ./script/generate mr_wizard contact personal_info survey message

That will generate:

* ContactController
* `personal_info`, `survey`, and `message` steps under `apps/controllers/contact` along with a common base step.
* A show view for the wizard and a partial for each step under `apps/views/contact`
* Specs under `spec/controllers/contact` for each step
* Specs for the views under `spec/views/contact`

You will want to edit each step's definition and view to tailor it for your
application. You may also need to edit the base class for each step too.


Controller
----------

The generated controller will have a structure similar to:

    class ContactController < ApplicationController
      mr_wizard :url => :contact_path, :steps => [
        :personal_info,
        :survey,<commit_msg>Noticed "apps" and not "app"<commit_after>MrWizard
========

MrWizard makes it easy to create wizards for your Rails app. It provides the
base classes for your wizard's controller and steps, and a generator that you
can use to easily generate the files needed for your wizard.


Usage
=====

    ./script/generate mr_wizard contact personal_info survey message

That will generate:

* ContactController
* `personal_info`, `survey`, and `message` steps under `app/controllers/contact` along with a common base step.
* A show view for the wizard and a partial for each step under `app/views/contact`
* Specs under `spec/controllers/contact` for each step
* Specs for the views under `spec/views/contact`

You will want to edit each step's definition and view to tailor it for your
application. You may also need to edit the base class for each step too.


Controller
----------

The generated controller will have a structure similar to:

    class ContactController < ApplicationController
      mr_wizard :url => :contact_path, :steps => [
        :personal_info,
        :survey,
{'fraction_non_alphanumeric': 0.07824871914299023, 'fraction_numerical': 0.0, 'mean_word_length': 3.9379310344827587, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '1624987', 'n_tokens_mistral': 580, 'n_tokens_neox': 551, 'n_words': 277}