<commit_before>= AvatarsForRails

This project rocks and uses MIT-LICENSE.


= Installation

Add to your Gemfile:

  gem 'avatars_for_rails'

and run:

  bundle update

Then:
  
  If you have a class named actor and you want it to have avatars, run:

  rails generate avataras_for_rails:install actor

This will generate the following:
* A public/ file with the js and css files required.
* A initializer file with configuration for avatars_for_rails.
* A migration providing the database schema for using avatars_for_rails with the actor class.

Do not forget to migrate your database

  rake db:migrate
  
In your application layout you have to add  this on the <head> label:

<head>
  <% stylesheet_link_tag :all %>
  <% javascript_include_tag :defaults %>
  <%= yield :headers %>
  <%= csrf_meta_tag %>
  <script type="text/javascript" charset="utf-8">
      $(document).ready(function() {
        <%= yield :javascript %>
      })
  </script>
</head>

In config/initializers/avatars_for_rails.rb  you have to change:

  def current_avatarable_object
      return Actor.find(:all).first
  end<commit_msg>README style change<commit_after>= AvatarsForRails

This project rocks and uses MIT-LICENSE.


= Installation

Add to your Gemfile:

  gem 'avatars_for_rails'

and run:

  bundle update

Then, if you have a class named actor and you want it to have avatars, run:

  rails generate avataras_for_rails:install actor

This will generate the following:
* A public/ file with the js and css files required.
* A initializer file with configuration for avatars_for_rails.
* A migration providing the database schema for using avatars_for_rails with the actor class.

Do not forget to migrate your database

  rake db:migrate
  
In your application layout you have to add  this on the <head> label:

  <head>
    <% stylesheet_link_tag :all %>
    <% javascript_include_tag :defaults %>
    <%= yield :headers %>
    <%= csrf_meta_tag %>
    <script type="text/javascript" charset="utf-8">
        $(document).ready(function() {
          <%= yield :javascript %>
        })
    </script>
  </head>

In config/initializers/avatars_for_rails.rb  you have to change:

  def current_avatarable_object
      return Actor.find(:all).first
  end
{'fraction_non_alphanumeric': 0.08128628852166146, 'fraction_numerical': 0.0008932559178204555, 'mean_word_length': 3.6861924686192467, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '4061272', 'n_tokens_mistral': 730, 'n_tokens_neox': 670, 'n_words': 247}