-
Notifications
You must be signed in to change notification settings - Fork 69
Conversation
@mwanji the build is failing, can you take a look at why that's happening? |
According to this stacktrace:
This ultimately leads to a missing Nokogiri: Do you have an idea what could be causing this? |
Do your tests pass locally? Try
|
I get the same error after a bundle update. Looking at Gemfile.lock, capybara has no dependencies, even though it should have several, including nokogiri. This issue might be related: teamcapybara/capybara#880 |
@mwanji can you make sure your editor trims whitespace at the end of lines? I'm seeing this in the diff: - klasses = ['control-group']
+ klasses = []
+ klasses << 'control-group' unless @field_options[:control_group] == false
klasses << 'error' if @field_options[:error]
klasses << 'success' if @field_options[:success]
klasses << 'warning' if @field_options[:warning]
+
+ control_group_options = {}
+ control_group_options[:class] = klasses if !klasses.empty?
- content_tag(:div, :class => klasses, &block)
+ content_tag(:div, control_group_options, &block)
end Specifically notice the blank green line? That just causes headaches down the line. |
I've merged this, because it seems to be an issue with travis actually. |
Thanks for merging. I think I can now get my project off my fork :).
I'll look into it. Also, this really seem to be an issue with capybara or even in capybara's dependencies, as many other people have had this issue: teamcapybara/capybara#882 |
Is it possible to remove the div all together? -- This is having issues with the following bootstrap selector when using .controls-row .controls-row [class*="span"] + [class*="span"] {
margin-left: 30px;
} |
@jsmestad has the suggested markup for a form changed recently? Last time I looked, it recommended the markup being generated. |
Taking a look at |
@jsmestad Can you open a new issue with the code you're using, the generated markup, and the expected markup? I don't want to pollute this issue. |
See #62 for the new issue. |
This option removes most of the form row HTML, such as the control-group, control-label and controls blocks.
I've found this handy for things like putting more than one form field on a single line, or generally getting fine-grained layout control without losing bootstrap_forms's benefits and nice API.