autopage installation & usage

STEP 1: install:
ruby script/plugin install git://rubyforge.org/auotopage.git

or
ruby script/plugin install git@github.com:eiffelqiu/autopage.git


STEP 2: put in your html <head>
<%= javascript_include_autopage %>


STEP 3: call tab_page function on String
<%= @article.tab_page(188) %>

sudo gem install autopage
still NOT function as a gem

before using autopage: <%= @article %> output

He who knows other men is discerning; he who knows himself is intelligent. He who overcomes others is strong; he who overcomes himself is mighty. He who is satisfied with his lot is rich; he who goes on acting with energy has a (firm) will. He who does not fail in the requirements of his position, continues long; he who dies and yet does not perish, has longevity.

after using autopage: <%= @article.tab_page(188) %> output

He who knows other men is discerning; he who knows himself is intelligent. He who overcomes others is strong; he who overcomes himself is mighty. He who is satisfied with his lot is rich;
he who goes on acting with energy has a (firm) will. He who does not fail in the requirements of his position, continues long; he who dies and yet does not perish, has longevity.

Demo text was from "Tao Te Ching" ---- My favorite book

知人者智,自知者明。
胜人者有力,自胜者强。
知足者富。
强行者有志。
不失其所者久。
死而不亡者寿。

Quote of the day: you may say i am a dreamer, but i am not the only one