Skip to content

Join team error #391 #234

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

Merged
merged 3 commits into from
Oct 28, 2014
Merged

Join team error #391 #234

merged 3 commits into from
Oct 28, 2014

Conversation

YaroSpace
Copy link
Contributor

This PR is reabased against current master, so it will fix any issues introduced by previous PRs on this bounty

Fix for Error when attempting to join a team instead of create a team #391

The fix was a one liner - incorrect format of params, which caused params.permit to raise a 400 error.

I covered the related logic with specs and features and also did a little refactoring to make it easier to test and to understand the logic.

Changes:

  • add params flags :show_similar and :join_team to clarify user intentions
  • extracted #with_similar_names to Team model method
  • added notification on success/failure of team creation
  • minor css fix to render payment boxes of equal height
  • minor fix to UsernamesController when validation is run against an empty user name
  • added poltergeist headless browser for integration testing with feature specs (will require phantomjs executable to be added to the vagrant box)

ok

error

@@ -56,3 +57,4 @@ git_stats
vcr_cassettes
dump
BACKUP
Guardfile
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it is worth adding those, so that devs can have their own local settings. Or is there a better way of doing this?

fix for ajax validations wihtout parameter

create logig refactoring
just3ws added a commit that referenced this pull request Oct 28, 2014
@just3ws just3ws merged commit 9a13c77 into coderwall:master Oct 28, 2014
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