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

Back link #1770

Merged
merged 10 commits into from
Aug 3, 2017
Merged

Back link #1770

merged 10 commits into from
Aug 3, 2017

Conversation

decabeza
Copy link
Collaborator

What

Now there is a lot of "Go back" links on the code but they does not have consistency: sometimes it's a partial, sometimes a helper or even other different code.

How

Adds consistency using always the back_link_to helper 🎉

Warnings

The partial _back_link.html.erb has been deleted, use this instead:

  • If you wanna include a simple < Go back link use:

    <%= back_link_to %>

  • You can add an specific path to go using:

    <%= back_link_to example_path %>

  • Also you can include a different text instead of "Go back" using:

    <%= back_link_to example_path, t("another.cool.text") %>

Copy link
Member

@voodoorai2000 voodoorai2000 left a comment

Choose a reason for hiding this comment

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

👏 👏 👏

@bertocq bertocq merged commit 411fb96 into master Aug 3, 2017
@bertocq bertocq deleted the back-link branch August 3, 2017 23:54
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