Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Investigate a pattern for #destroy actions. #12

Open
richardkmichael opened this issue Sep 2, 2011 · 0 comments
Open

Investigate a pattern for #destroy actions. #12

richardkmichael opened this issue Sep 2, 2011 · 0 comments

Comments

@richardkmichael
Copy link
Owner

  • Is there a Rails pattern for handling these redirects?
  • What to do when the item to be destroyed can't be found?
  • What to do after the destroy, e.g. where to redirect?
  • Should we render(), and not redirect() - why round-trip the browser? See: (Builds|Projects)Controller#destroy

app/controllers/builds_controller.rb
If no @build, root_path; else, project_path(@build.project).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant