Loading...
Loading...
Ruby on Rails integration for Unpoly. Use when working with the unpoly-rails gem or building Unpoly-powered Rails apps. Covers server-side helpers (up?, up.target, up.layer.accept, up.layer.dismiss, up.layer.open, up.validate?, up.cache.expire, up.context, up.emit, up.safe_callback, fresh_when, render_nothing), Rails view helpers (link_to, form_with, button_to with Unpoly attributes), flash messages with [up-hungry], Turbo coexistence (disabling Turbo Drive in Rails 7+), CSP setup with csp_meta_tag, and global follow-all config.
npx skill4agent add thomasklemm/unpoly-skills unpoly-railsunpoly-railsunpoly-rails# Gemfile
gem 'unpoly-rails'// application.js
//= require unpoly/* application.css
*= require unpoly
*/import 'unpoly/unpoly.js'
import 'unpoly/unpoly.css'| Helper | Purpose |
|---|---|
| Is this an Unpoly fragment request? |
| CSS selector being updated (success) |
| Override the render target |
| Is this selector targeted? |
| CSS selector targeted for failed responses |
| Is selector targeted for success or failure? |
| Is this a form validation request? |
| Field names that triggered validation |
| Layer mode: |
| Is the targeted layer an overlay? |
| Is the targeted layer the root layer? |
| Accept the current overlay |
| Dismiss the current overlay |
| Request frontend to open a new overlay |
| Layer context hash |
| Alias for |
| Emit event on |
| Emit event on the targeted layer |
| Expire the client-side cache |
| Evict entries from the client-side cache |
| Set document title from server |
| CSP-safe inline callback with nonce |
| Render empty 204 response |
| Read Unpoly headers without setting Vary |
link_toform_withbutton_tocsp_meta_tagup-accept-eventup-dismiss-event