mkhairi / materialize-sass

Materializecss rubygem for Rails Asset Pipeline / Sprockets
http://materialize.labs.my/
MIT License
806 stars 243 forks source link

Simple form as: :select does not work #157

Closed jeremiahlukus closed 5 years ago

jeremiahlukus commented 7 years ago

I have used the js initializer at the top of my file, however, I am unable to get this to work.

= f.association :tutor, collection: Tutor.all, label_method: :name, value_method: :id, as: :select

Is there a work around to get the select, menu to work or disable the materialize css for only select?

basicBrogrammer commented 7 years ago

Have you tried https://github.com/jamesfwz/materialize-form?

jeremiahlukus commented 7 years ago

Yes, it doesn't work on select options.

On Aug 14, 2017 08:41, "Jeremy Ward" notifications@github.com wrote:

Have you tried https://github.com/jamesfwz/materialize-form?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mkhairi/materialize-sass/issues/157#issuecomment-322179681, or mute the thread https://github.com/notifications/unsubscribe-auth/AQaNbntvkYqxzIqFla6bCYffWXQ4aBMdks5sYECRgaJpZM4OneCL .

basicBrogrammer commented 7 years ago

oooo yeah did you initialize it with javascript $(input selector)..material_select();