"no route matches"

Hi all,

I'm getting an error in my rails 3 app when trying to update a user's

Started POST "/users/1328-mturner" for at 2010-06-11

ActionController::RoutingError (No route matches "/users/1328-

I'm not sure why this is happening as I'm using a standard controller
as generated by rails:

def update
    @user = User.find(params[:id])

    respond_to do |format|
      if @user.update_attributes(params[:user])
        format.html { redirect_to(@user, :notice => 'User information
was successfully updated.') }
        format.xml { head :ok }
        format.html { render :action => "edit" }
        format.xml { render :xml => @user.errors, :status
=> :unprocessable_entity }

I wonder if it is something to do with the fact it's attempting to
POST when it should be PUTting? Why would it be doing this?

Here's what rake routes says about users:

                     GET /users(.:format)
{:controller=>"users", :action=>"index"}
               users POST /users(.:format)
{:controller=>"users", :action=>"create"}
            new_user GET /users/new(.:format)
{:controller=>"users", :action=>"new"}
                     GET /users/:id(.:format)
{:controller=>"users", :action=>"show"}
                     PUT /users/:id(.:format)
{:controller=>"users", :action=>"update"}
                user DELETE /users/:id(.:format)
{:controller=>"users", :action=>"destroy"}
           edit_user GET /users/:id/edit(.:format)
{:controller=>"users", :action=>"edit"}

Any help would be much appreciated!



are u using haml ?

Ivan Nastyukhin

Yes I am, is this a known problem?

if in production mode yes,
haml insrt in rack, and in each request, try doing update_css and get a error

i simplify remove update sass to css, http://github.com/dieinzige/haml, and run rake by my own hands)

because its was simlify solutions, in next time, i wil fix it

Ivan Nastyukhin

Oh, I'm having the same problem in development mode too.