README.md in rails_toastify-0.1.6 vs README.md in rails_toastify-0.1.7

- old
+ new

@@ -54,9 +54,17 @@ RailsToastify.showToast('This is an error message!', 'error'); RailsToastify.showToast('This is an info message!', 'info'); RailsToastify.showToast('This is a warning message!', 'warning'); ``` +To see notice in a toast add: + +```ruby +<%= javascript_tag do %> + RailsToastify.showToast('<%= notice %>', 'success') +<% end %> +``` + ## Requirements - Ruby >= 2.6.0 (recommended 2.7+) - Rails >= 6.0 (compatible up to Rails 7)