Can you post the entire controller so we have some context of the
surrounding code? Might be easier to debug what is going on. Do you
have a functional test for it?

Cheers,
Nicholas


On Jun 26, 4:40 am, Herman Müller <[email protected]>
wrote:
> Hi Ruby Community,
>
> after destroying a record, ruby (2.2) don't use the registerd redirect
> in the controller:
>
>              format.html { redirect_to(tbl_akte_tbl_beteiligtes_url) }
>
> Everytime after deleting ruby uses the show-action, and because the
> record is now deleted ruby couldn't find it again and throws an error
> message:
>
>   app/controllers/tbl_beteiligtes_controller.rb:23:in `show'
>
> I checked via rake routes the routing, and normaly the route
> "tbl_akte_tbl_beteiligtes_url" should use the index-action.
>
> Everthing else like edit, create etc. works fine.
>
> Do somebody knows a solution?
>
> Thanks ahead for every recommendation.
>
> Regs
>
> Hermann
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to