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

Fullscreen / bh / 257
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: up-yard
DEFAULT BRANCH: master
Ran 03 Feb 2015 12:43AM UTC
Jobs 2
Files 81
Run time 50s
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

pending completion
257

push

travis-ci

claudiob
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>
```

2022 of 2022 relevant lines covered (100.0%)

68.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 257.1 (1.9.3, gemfiles/Gemfile.rails-3.x) 03 Feb 2015 12:43AM UTC 0
100.0
Travis Job 257.1
2 257.2 (2.0.0, gemfiles/Gemfile.rails-4.x) 03 Feb 2015 12:43AM UTC 0
100.0
Travis Job 257.2
Source Files on build 257
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #257
  • fa50f021 on github
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