Compatibility
If you encounter any compatibility issue, please signal it on repo.
Ruby on Rails
Coupdoeil is made for Ruby on Rails.
Forms
Form helper should work and correctly include CSRF token.
ViewComponent and Rendering API
Coupdoeil hovercards can render ViewComponents or any object that implements ActionView rendering API.
class ContactHovercard < Coupdoeil::Hovercard
def details
@contact = params[:contact]
render ContactDetailsComponent.new(contact: @contact)
end
end
Template languages
Coupdoeil should work with any templating language (ERB, Slim, Haml …).
Turbo
Coupdoeil detects if Turbo is used and ensure opened hovercard won’t be seen when Turbo renders cached pages.
Mobile & touch devices
Coupdoeil hovercards are not intended to work on mobile or touch devices. No testing has been done so far and there is no built-in way (yet) to disable it on such devices.