# In\_place\_editor\_field - "No Route Matches" Error

**URL:** <https://www.ruby-forum.com/t/in-place-editor-field-no-route-matches-error/117223>\
**Category:** Rails\
**Created:** [October 15, 2007, 12:29am UTC](https://www.ruby-forum.com/t/in-place-editor-field-no-route-matches-error/117223 "2007-10-15T00:29:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgiorno](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mgiorno](https://www.ruby-forum.com/u/mgiorno)\
**Post date:** [October 15, 2007, 12:29am UTC](https://www.ruby-forum.com/t/in-place-editor-field-no-route-matches-error/117223/1 "2007-10-15T00:29:50Z")

</div>

I’m trying to create an edit in place profile update page, using  
in\_place\_editor\_field. Every time I try, I keep getting this error

No route matches {:action=\>“set\_user\_first\_name”, :id=\>“1”}

Would any know what the problem might be? The relevant code is blow.

Link to users\_controller.rb  
`
in_place_edit_for :user, :first_name`

# profile edit page

def update  
@user = User.find\_by\_user\_name(params[:user\_name])  
end

Link from index to Update Action  
`
<%= link_to ‘Your Profile’, update_user_url(:user_name =>
current_user.user_name, :id => current_user.id) %>
`

Update.rhtml  
`
<%= in_place_editor_field :user, :first_name %>
`

---

<div class="post-metadata">

**Author:** ![mgiorno](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mgiorno](https://www.ruby-forum.com/u/mgiorno)\
**Post date:** [October 15, 2007, 5:30pm UTC](https://www.ruby-forum.com/t/in-place-editor-field-no-route-matches-error/117223/2 "2007-10-15T17:30:24Z")

</div>

I’m having the same issue. I think it’s because I have the default  
routes off, but I can’t find any reference to what the route should  
be. If I put the default routes back in just to test, it works.

Wait, I just checked the source. You should see something like this:

//

So, in your case, just make sure that /users/set\_user\_first\_name/ is a  
known route and you should be good to go.

Sean

---

<div class="post-metadata">

**Author:** ![mgiorno](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mgiorno](https://www.ruby-forum.com/u/mgiorno)\
**Post date:** [October 16, 2007, 8:53am UTC](https://www.ruby-forum.com/t/in-place-editor-field-no-route-matches-error/117223/3 "2007-10-16T08:53:06Z")

</div>

You’re right! I just enabled default routes, and was good to go.

I added the following to the end of my routes.rb.

map.route ‘/:controller/:action’

-Mario
