Skip to content

Conversation

@yevhene
Copy link
Contributor

@yevhene yevhene commented Feb 27, 2016

Useful when real field value specified indirectly:

f.form_group :user do f.email_field :email, wrapper: false end
@mattbrictson
Copy link
Contributor

Hi, thanks for the PR! Bonus points for the included unit test. Awesome. 👍

I'm considering merging this but first I want to understand a little more about your use case. Could you give a more detailed example/explanation of why this new feature is useful?

@gradybarrett
Copy link

@mattbrictson, I think this feature could be used to address issue 89. Unless there's a better way to solve that issue.

@mattbrictson
Copy link
Contributor

I think this feature could be used to address issue 89

Good point!

@mattbrictson
Copy link
Contributor

@yevhene Could you update this PR with a CHANGELOG entry? Thanks!

@yevhene
Copy link
Contributor Author

yevhene commented May 8, 2017

@mattbrictson
Copy link
Contributor

Hmm, looks like there are some test failures in Travis (above and beyond the known issue in #329).

E.g. https://travis-ci.org/bootstrap-ruby/rails-bootstrap-forms/jobs/229914661

 1) Failure: BootstrapFormGroupTest#test_rendering_without_wrapper [/home/travis/build/bootstrap-ruby/rails-bootstrap-forms/test/bootstrap_form_group_test.rb:250]: --- expected +++ actual @@ -1 +1 @@ -"<input class=\"form-control\" id=\"user_email\" name=\"user[email]\" type=\"text\" value=\"steve@example.com\" />" +"<input class=\"form-control\" type=\"text\" value=\"steve@example.com\" name=\"user[email]\" id=\"user_email\" />" 

@yevhene Can you rebase on the latest master and also update your test to use assert_equivalent_xml instead of assert_equal? I think that should fix it.

Thanks for your help! 🙇

@yevhene
Copy link
Contributor Author

yevhene commented May 8, 2017

@yevhene
Copy link
Contributor Author

yevhene commented May 8, 2017

@mattbrictson I don't understand what CI wants now.

@mattbrictson
Copy link
Contributor

Like I said, it is the known problem reported in #329. Don't worry about it! Thanks

@medir
Copy link

medir commented Dec 19, 2018

Is there any plan to integrate this feature into the next version? It fits perfect to my issue :) ty

@lcreid
Copy link
Contributor

lcreid commented Dec 22, 2018

Thanks for bringing this to my attention. It sounds worthwhile. Apologies that we haven't merged it already. I will look into it and see what we can do.

@lcreid
Copy link
Contributor

lcreid commented Dec 22, 2018

Closing and re-opening to force a re-run of Travis.

@lcreid lcreid closed this Dec 22, 2018
@lcreid
Copy link
Contributor

lcreid commented Dec 22, 2018

Reopen to force Travis. FYI: The reason I had to close and re-open is because we changed the name of the repository last year. If we hadn't changed the number, I would have been able to simply re-run the build in Travis.

@lcreid lcreid reopened this Dec 22, 2018
@lcreid
Copy link
Contributor

lcreid commented Dec 22, 2018

@yevhene would you please add documentation to the README.md describing the :wrapper option, and fix the RuboCop offences. You can see the RuboCop offences in the last build of the Travis run. If you're not interested feel free to say so and we'll do it.

I'll look into the Travis failures for the runs against the old version of Ruby, unless someone fixes it before I can get to it.

@lcreid
Copy link
Contributor

lcreid commented Dec 22, 2018

Trying the "close-reopen" trick again to see if the Travis build has been fixed.

@lcreid lcreid closed this Dec 22, 2018
@lcreid lcreid reopened this Dec 22, 2018
@lcreid
Copy link
Contributor

lcreid commented Dec 22, 2018

The Travis failure is fixed now.

@lcreid lcreid merged commit 1ce7cdb into bootstrap-ruby:master Jan 10, 2019
@yevhene yevhene deleted the wrapper-false branch January 10, 2019 12:10
lcreid added a commit to lcreid/rails-bootstrap-forms that referenced this pull request Jan 10, 2019
lcreid added a commit to lcreid/rails-bootstrap-forms that referenced this pull request Jan 10, 2019
lcreid added a commit that referenced this pull request Jan 10, 2019
* Rename div_class to make refactoring more obvious. * Fix issue #476 for check_boxes. * Fix issue #476 for radio buttons. * Test for `:custom` option just once. * Fix a Minitest deprecation warning. * Preparing v4.0.0. * Add Code of Conduct. * Documentation corrections for RuboCop. * Explicitly disable RuboCop on FormBuilder class and form_group_builder. * Fix Rubocop offense in test. Issue #499. * Documentation for wrapper: false. PR #259. * Move the CHANGELOG entry for #259 to the right place. Fixes #499.
lcreid added a commit that referenced this pull request Jan 10, 2019
* Rename div_class to make refactoring more obvious. * Fix issue #476 for check_boxes. * Fix issue #476 for radio buttons. * Test for `:custom` option just once. * Fix a Minitest deprecation warning. * Preparing v4.0.0. * Add Code of Conduct. * Documentation corrections for RuboCop. * Explicitly disable RuboCop on FormBuilder class and form_group_builder. * Fix Rubocop offense in test. Issue #499. * Documentation for wrapper: false. PR #259. * Move the CHANGELOG entry for #259 to the right place. Fixes #499. * Add a test to confirm the placement of HTML options in select in README. Confirms PR #495.
lcreid added a commit that referenced this pull request Jan 23, 2019
* Rename div_class to make refactoring more obvious. * Fix issue #476 for check_boxes. * Fix issue #476 for radio buttons. * Test for `:custom` option just once. * Fix a Minitest deprecation warning. * Preparing v4.0.0. * Add Code of Conduct. * Documentation corrections for RuboCop. * Explicitly disable RuboCop on FormBuilder class and form_group_builder. * Fix Rubocop offense in test. Issue #499. * Documentation for wrapper: false. PR #259. * Move the CHANGELOG entry for #259 to the right place. Fixes #499. * Update static_control -- no block -- documentation for Bootstrap 4.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

5 participants