Skip to content

Add cuke feature explaining custom routes #651

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

Closed
wants to merge 2 commits into from

Conversation

pcasaretto
Copy link
Contributor

This is related to #636

end

end
end
Copy link
Contributor

Choose a reason for hiding this comment

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

The output of this would be:

ApplicationController
  custom
    does not work by default
    when custom routes are drawn
      works
    when a route is drawn with custom parameters
      accepts custom parameters

I think it would read better like this (or similar):

a custom route in an anonymous controllers
  is not supported by default
  with custom routes drawn in the spec
    is supported with no params
    is supported with custom params

Note that this moves the code in before hooks right into the examples, but that's fine in this case because there is no duplication. WDYT?

@pcasaretto
Copy link
Contributor Author

Looks much better!
Inc. commit.

@dchelimsky
Copy link
Contributor

Thanks, @pcasaretto. That looks better to me. Cheers.

@alindeman
Copy link
Contributor

Merged with ee3f224. I felt like the case where the routing failed was covered by other examples, so I reduced the scenario a bit. Thanks very much @pcasaretto! 🌈

@alindeman alindeman closed this Dec 8, 2012
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.

3 participants