• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Fullscreen / bh / 258 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 03 Feb 2015 12:43AM UTC
Files 81
Run time 34s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Feb 2015 12:42AM UTC coverage: 100.0%. Remained the same
1.9.3, gemfiles/Gemfile.rails-3.x

Pull #116

travis-ci

claudiofullscreen
Make `form_for` behave like `link_to` in a nav

Before this commit, using `link_to` inside the block of the `nav`
helper would wrap the `<a>` inside a `<li>` item; however using
`form_for` would **not** wrap the `<form>` inside a `<li>` item.

After this commit, both helpers work in a similar way so the code:

```rhtml
<%= nav class: 'navbar-right' do %>
  <%= link_to 'Setting', settings_path %>
  <%= form_for User.new do |f| %>
    <%= f.submit 'Sign in' %>
  <% end %>
<% end %>
```

now generates the following HTML:

```html
<ul class="navbar-right nav nav-tabs" role="tablist">
  <li>
    <a href="/">Setting</a>
  </li>
  <li>
    <form class="new_user" id="new_user" action="/" accept-charset="UTF-8" method="post">
      <input name="utf8" type="hidden" value="✓">
      <input type="hidden" name="authenticity_token" value="oPy4W/">
      <input type="submit" name="commit" value="Go">
    </form>
  </li>
</ul>
```
Pull Request #116: 1.3.0

2022 of 2022 relevant lines covered (100.0%)

34.14 hits per line

Source Files on job 258.1 (1.9.3, gemfiles/Gemfile.rails-3.x)
  • Tree
  • List 0
  • Changed 30
  • Source Changed 13
  • Coverage Changed 29
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 258
  • Travis Job 258.1
  • 7135bd84 on github
  • Prev Job for 1.9.3, gemfiles/Gemfile.rails-3.x on master (#252.1)
  • Next Job for 1.9.3, gemfiles/Gemfile.rails-3.x on master (#259.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc