Skip to content

Conversation

sushant12
Copy link
Contributor

@sushant12 sushant12 commented Jun 13, 2019

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Documentation Update

Description

redirect_to in users_controller.rb was using a hardcoded route path, so I just changed it to using a dynamic route name path

Added to documentation?

  • docs.dev.to
  • readme
  • no documentation needed

@pr-triage pr-triage bot added the PR: unreviewed bot applied label for PR's with no review label Jun 13, 2019
@CLAassistant
Copy link

CLAassistant commented Jun 13, 2019

CLA assistant check
All committers have signed the CLA.

@@ -6,7 +6,7 @@ class UsersController < ApplicationController
def edit
unless current_user
skip_authorization
return redirect_to "/enter"
return redirect_to new_user_registration_path_path
Copy link

@awcodify awcodify Jun 18, 2019

Choose a reason for hiding this comment

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

can we also change the alias into new_user_registration_path in routes? If it too much effort, let's stick with this one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

new_user_registration_path has already been declared by devise. What else do you reckon? :)

Choose a reason for hiding this comment

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

okay, keep it then

awcodify
awcodify previously approved these changes Jun 20, 2019
@pr-triage pr-triage bot added PR: reviewed-approved bot applied label for PR's where reviewer approves changes and removed PR: unreviewed bot applied label for PR's with no review labels Jun 20, 2019
Copy link
Contributor

@maestromac maestromac 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 for this PR!.

new_user_registration_path_path is a bit long. Let's change that path to sign_up_path.

@pr-triage pr-triage bot added PR: reviewed-changes-requested bot applied label for PR's where reviewer requests changes and removed PR: reviewed-approved bot applied label for PR's where reviewer approves changes labels Jun 24, 2019
@pr-triage pr-triage bot added PR: unreviewed bot applied label for PR's with no review and removed PR: reviewed-changes-requested bot applied label for PR's where reviewer requests changes labels Jun 25, 2019
@sushant12
Copy link
Contributor Author

Thank you for this PR!.

new_user_registration_path_path is a bit long. Let's change that path to sign_up_path.

that is a good suggestion

Copy link
Contributor

@maestromac maestromac left a comment

Choose a reason for hiding this comment

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

LGTM!

@pr-triage pr-triage bot added PR: reviewed-approved bot applied label for PR's where reviewer approves changes and removed PR: unreviewed bot applied label for PR's with no review labels Jun 25, 2019
@maestromac maestromac merged commit 108a961 into forem:master Jun 25, 2019
@pr-triage pr-triage bot added PR: merged bot applied label for PR's that are merged and removed PR: reviewed-approved bot applied label for PR's where reviewer approves changes labels Jun 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: merged bot applied label for PR's that are merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants