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

Add Lucky::Routable.url_without_query_params #662

Conversation

hibachrach
Copy link
Contributor

Closes #407

I broke up Lucky::Routable.route because it seemed to be getting a bit long.

If anyone has any tips on DRYing up

{% for param in path_params %}       
  {{ param.gsub(/:/, "").id }}
{% end %}

for defining arguments, that would be much appreciated!

@hibachrach hibachrach force-pushed the hib-add-url-without-query-params branch from f3ee97e to 42423a9 Compare December 31, 2018 23:57
@hibachrach hibachrach force-pushed the hib-add-url-without-query-params branch from 42423a9 to d8f63d5 Compare January 1, 2019 00:24
Copy link
Member

@paulcsmith paulcsmith left a comment

Choose a reason for hiding this comment

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

Thank you so much! I'm very excited about using this in my apps!

{% for param in path_params %}
{{ param.gsub(/:/, "").id }},
{% end %}
)
Copy link
Member

Choose a reason for hiding this comment

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

I wish I knew of a good way to DRY up macros like this, but I don't know of a way :(

@paulcsmith paulcsmith merged commit cc54ed8 into luckyframework:master Jan 4, 2019
@hibachrach hibachrach deleted the hib-add-url-without-query-params branch January 4, 2019 05:31
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.

2 participants