KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I often find myself writing this: params.delete(:controller) params.delete(:action) params.delete(:other_key) redirect_to my_path(params) The trail of deletes doesn't feel right and neither does: [:controller, :action, :other_key].each do |k| params.delete(k) end Is there anything simpler and cleaner?
Tags (comma-separated)
Save Edits
Cancel