app/helpers/application_helper.rb
# *objectTags* - Array of tags already available for the page
# *allTagsUrl* - URL to the all available tags that can be added to the page

objectTags* - Array of tags already available for the page
allTagsUrl* - URL to the all available tags that can be added to the page
objectTags * - Array of tags already available for the page allTagsUrl * - URL to the all available tags that can be added to the page
def page_tags(objectTags, allTagsUrl, locale = 'en')
    %{
        <div id="tags"></div>
        <script type="text/javascript">
          $(document).ready(function(){
            $("#tags").tagit({
              objectTags: #{objectTags.to_json},
              allTags : "#{allTagsUrl}",
              locale : "#{locale}"
            });
          });
        </script>
    }.html_safe
  end
def page_tags ( objectTags , allTagsUrl , locale = 'en' ) %{
        <div id="tags"></div>
        <script type="text/javascript">
          $(document).ready(function(){
            $("#tags").tagit({
              objectTags: #{objectTags.to_json},
              allTags : "#{allTagsUrl}",
              locale : "#{locale}"
            });
          });
        </script>
    } . html_safe end
objectTags* - Array of tags already available for the page
allTagsUrl* - URL to the all available tags that can be added to the page
objectTags * - Array of tags already available for the page allTagsUrl * - URL to the all available tags that can be added to the page
objectTags
<not_specific>
allTagsUrl
<not_specific>
locale
<not_specific>