Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6776 remove unused routes #6781

Closed
wants to merge 2 commits into from
Closed

6776 remove unused routes #6781

wants to merge 2 commits into from

Conversation

denys281
Copy link
Contributor

@denys281 denys281 commented Apr 2, 2016

@theworldbright

PR for #6776

@denschub
Copy link
Member

denschub commented Apr 4, 2016

Have you checked if there are any other invalid routes?

@denys281
Copy link
Contributor Author

denys281 commented Apr 5, 2016

@denschub no, but I will check.

@denschub
Copy link
Member

How did your checks go?

@denys281
Copy link
Contributor Author

denys281 commented Apr 22, 2016

@denschub just started. Create doc for invalid routes: https://docs.google.com/spreadsheets/d/1rX6KRalSBKGm-aZrqSgDnO-xXmnNI-TGTSK5KybS8vI/edit?usp=sharing

But I don't now application well so maybe some of them aren't invalid. So usually it is resources in routes but now action in controller.

@denys281
Copy link
Contributor Author

@denschub Finished with document. What are the next steps?

@denschub
Copy link
Member

How about... removing them? :)

@denys281
Copy link
Contributor Author

Ok :)

@@ -7,7 +7,7 @@

Diaspora::Application.routes.draw do

resources :report, :except => [:edit, :new]
resources :report, :except => [:edit, :new, :show]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the new Ruby 1.9 hash syntax.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use %i or %I for array of symbols.

@denys281
Copy link
Contributor Author

@denschub ready.

@jhass
Copy link
Member

jhass commented Aug 9, 2016

Merged as ef72942

Sorry for taking so long to take a look at this.

Thank you!

@jhass jhass closed this Aug 9, 2016
@jhass jhass added this to the 0.6.0.0 milestone Aug 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants