GithubHelp home page GithubHelp logo

greenbell / ugo2_helper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nog/ugo2_helper

0.0 8.0 0.0 127 KB

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

License: MIT License

Ruby 100.00%

ugo2_helper's Introduction

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

ugo2_helper's People

Contributors

mshibuya avatar nog avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.