On 11 January 2011 23:02, Garrett Lancaster <[email protected]>wrote:
> If you don't provide a redirect_to, it will assume a view with name > create.html.erb or create.html.haml, etc. and try to render it giving you a > missing template. The most common design is create redirects to @model and > destroy redirects to index_path. > If I put in create respond_with, for example respond_with(@sector) it seems that redirects automatically to show while respond_with(@sector) in destroy redirects to index. How can it know where redirect? -- 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.

