trailblazer / formular

Form builder for Ruby. Fast, Furious, and Framework-Agnostic.
MIT License
81 stars 17 forks source link

Setting default builder (newbie) question #46

Closed joep closed 7 years ago

joep commented 7 years ago

Hi,

I just starting formular for a Sinatra app. Using the suggested

helpers Formular::Helper

works fine to get the form helper into my templates.

However, using the suggested

Formular::Helper.builder = :bootstrap3

to set the defaut builder doesn't work for me.

puts   Formular::Helper.builder.inspect
Formular::Helper.builder = :bootstrap3
puts   Formular::Helper.builder.inspect

Outputs Formular::Builders::Basic for both.

Thanks!

emaglio commented 7 years ago

Are you using the master branch? We should have fixed that with one of the latest commit.

fran-worley commented 7 years ago

I'll bump the version :)

joep commented 7 years ago

Switching to the master branch did fix the issue.

Thanks!

fran-worley commented 7 years ago

@joep I've just released v0.2.2 which includes the helper fixes.