Ruby on Rails Friday, November 26, 2010

On 25 November 2010 22:06, Ben Woodall <lists@ruby-forum.com> wrote:
> I'm at a complete loss. I can get to new and edit and when I submit the
> new post or submit the edit, i'll get:
>
> Routing Error
> No route matches "/knodes/new"

Are you saying that you can get to new ok, so you are in the view
new.html.erb, then when you click the save button you get the routing
error above? that seems a bit odd as it should be going to create not
new. Have you checked in log/development.log to see if there is any
more info? It may be that it is going to the create and then failing
at the next stage. Does it create the new record? If you are sure it
is not going to create then post the view code please.

>
> or
>
> Routing Error
> No route matches "/knodes/1/edit"

Similarly this should be going to update not edit.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment