To trigger a toast
Info
- Toast styling comes from base-styles.
-
The html lives in
/views/shared/_partial_containers.html.erband/views/shared/_toast.html.erb.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
flash.now[:toasts] = [
{ title: 'Post Created', message: 'Your post has been created.' }
]
/views/shared/_partial_containers.html.erb and /views/shared/_toast.html.erb.