LineSendButton
http://about.naver.jp/press/press_detail?docId=1976
Installation
Add this line to your application's Gemfile:
gem 'line_send_button'
And then execute:
$ bundle
Or install it yourself as:
$ gem install line_send_button
Usage
naver_line_send_link(message, url = nil, options = {}, html_options = {}, image_options = {})
<%= naver_line_send_link('foo') %>
call
link_to(naver_line_send_url(message, url), options, html_options) do
naver_line_send_image_tag(image_options)
end
naver_line_send_url(message, url = nil)
<%= naver_line_send_url('bar') %>
naver_line_send_image_tag(options = {})
<%= naver_line_send_image_tag %>
<%= naver_line_send_image_tag(:size => '20x20') %>
- size option ...
20x20
, 30x30
, 36x60
(default), '40x40', '86x20'
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request