Skip to content

nog/ugo2_helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ugo2Helper
==========

うごくひと2(http://ugo2.jp/ )を簡単に使うためのヘルパープラグインです。


Example
=======
1. Install Ugo2Helper plugin
  ./script/plugin install git://github.com/nog/ugo2_helper.git

2. in your view
  <%=ugo2_tag server, user, hash, title, options %>
  パラメータ説明
  http://ugo2.jp/home/account/tag/ を参照して
  serverは画像のサーバー名(例:b03.ugo2.jp)
  userはuというパラメータに渡されている値
  hashはhというパラメータに渡されている値
  titleはそのページのタイトルを入れる。
  optionsにはハッシュを入れる
  キー:chはデフォルトUTF-8,Shift-JISの場合はSJIS,EUCの場合はEUC,JISの場合はJISを入れる
  キー:utはデフォルト1,法人ユーザーの場合2

  example
  <%=ugo2_tag "bxx.ugo2.jp", "00000000", "abcdef", "pagetitle", :ch => "SJIS", :ut => 2 %>
  #chにSJIS渡していますが、これはtitleの文字コードなので、基本的にUTF-8です。
  #Jpmobile等で文字コード変換を行っている場合もURLエンコードする時点ではUTF-8なので、デフォルトのUTF-8のままで大丈夫です。




Copyright (c) 2009 Shingo Noguchi(http://cureblack.com/ ), released under the MIT license

About

うごくひと2をRailsから簡単に使うHelperプラグイン

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages