
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
RailsLiff make LIFF easy to use.
gem 'rails_liff'
login to line developers, and create 3 LIFF for 3 different size.
for compact
for tall
for full
and then copy the result to enviroment parameters:
LIFF_COMPACT=line://app/for_compact_liff_id
LIFF_TALL=line://app/for_tall_liff_id
LIFF_FULL=line://app/for_full_liff_id
RailsLiff using view format .liff
, so you can reuse exists controller and model, you can create a LIFF form by only adding a new view file.
Suppose you have a resource todos
, you want to create a liff form for todos/new
, so you create a file app/views/todos/new.liff.erb
, the content is as follows:
<% content_for :title, "new todo" %>
<%= render "todos/form.html", todo: @todo %>
<%= link_to "test", liff_path(path: '/todos/new') %>
You can test the form at localhost:3000/todos/new.liff
You can change any path to liff by liff_path
method.
for example:
liff_path(path: '/todos/new')
You can choice the liff size by liff_size
parameter. the default value of liff_size is compact.
liff_path(path: '/todos/new', liff_size: :compact)
liff_path(path: '/todos/new', liff_size: :tall)
liff_path(path: '/todos/new', liff_size: :full)
liff_path method add format :liff automatically.
create by etrex
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that rails_liff demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.