# Rails-3.0.3 API change? Completed 406 Not Acceptable

**URL:** <https://discuss.rubyonrails.org/t/rails-3-0-3-api-change-completed-406-not-acceptable/55846>\
**Category:** rubyonrails-core\
**Created:** [November 22, 2010, 5:54pm UTC](https://discuss.rubyonrails.org/t/rails-3-0-3-api-change-completed-406-not-acceptable/55846 "2010-11-22T17:54:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_B\_Byrne](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@James\_B\_Byrne](https://discuss.rubyonrails.org/u/James_B_Byrne)\
**Post date:** [November 22, 2010, 5:54pm UTC](https://discuss.rubyonrails.org/t/rails-3-0-3-api-change-completed-406-not-acceptable/55846/1 "2010-11-22T17:54:27Z")

</div>

X-posted from Ruby-on\_rails Talk

Updating to Rails-3.0.3 resulted in 14 tests failing. Investigating one of them I discover that this message "Completed 406 Not Acceptable in 223ms" is being returned instead of the expected page. This error indicates that the format of the request cannot be satisfied. Usually a format specification is html or json or pdf. Imagine my surprise then when I see in the html generated from the view template:

\<td\> \<a href="/user/roles.1" id="show\_user\_roles\_administrator\_link"\>Roles\</a\> \</td\>

instead of:

\<td\> \<a href="/users/1/roles" id="show\_user\_roles\_administrator\_link"\>Roles\</a\> \</td\>

The question is: Why is Rails 3.0.3 asking for a format of .1 instead of requesting a user with id == 1? Is this a bug or an API change?
