Closed gr8distance closed 6 years ago
hi @aimerald, thanks for you idea and pr. unfortunately, i am using different approach for ease of use, without amend or add extra function to original assets.
see https://github.com/mkhairi/materialize-sass/blob/master/lib/materialize-sass/helpers.rb example can be found on demo app.
Purpose
I think Materialize.toast is very beautifully, functionally and conveniently. I want to show the Flash messages on Materialize.toast. because I created this PullRequest.
Screen Shots
Approach
Usage
1, insert 'notice methods' in application.html.erb
2, insert 'Materialize.flash_message' in application.js
Sorry for my poor English. thank you for reading