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

Rewrite callbacks for avoid using redirect_to :back #2113

Merged
merged 1 commit into from Apr 3, 2019

Conversation

ymasiuk
Copy link

@ymasiuk ymasiuk commented Mar 7, 2019

No description provided.

@@ -21,7 +21,7 @@ def create
if @blockchain.save
redirect_to admin_blockchains_path
else
flash[:alert] = @blockchain.errors.full_messages
flash[:alert] = @blockchain.errors.full_messages.first
Copy link

Choose a reason for hiding this comment

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

Why did you change to .first ?

Copy link
Author

Choose a reason for hiding this comment

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

@ysv without .first we will see error like ["ERROR_TEXT"] with .first it would be just like string without any characters.

@ysv
Copy link

ysv commented Mar 12, 2019

@ymasiuk Create issue please
Also once approved open same pr to master

@shal
Copy link

shal commented Mar 19, 2019

@ymasiuk Please rebase, your patch doesn't work now.

@ymasiuk
Copy link
Author

ymasiuk commented Mar 20, 2019

@shal done

@mod mod merged commit 6111cf4 into openware:2-0-stable Apr 3, 2019
mnaichuk pushed a commit to mnaichuk/peatio that referenced this pull request Apr 10, 2019
mod pushed a commit that referenced this pull request Apr 18, 2019
* Change redirect_to to render (#2113)

* Rewrite callbacks for avoid using redirect_to :back
mnaichuk pushed a commit to mnaichuk/peatio that referenced this pull request Apr 19, 2019
* Change redirect_to to render (openware#2113)

* Rewrite callbacks for avoid using redirect_to :back
mnaichuk pushed a commit that referenced this pull request Apr 19, 2019
* Change redirect_to to render (#2113)

* Rewrite callbacks for avoid using redirect_to :back
mnaichuk pushed a commit to mnaichuk/peatio that referenced this pull request Apr 19, 2019
* Change redirect_to to render (openware#2113)

* Rewrite callbacks for avoid using redirect_to :back
mnaichuk pushed a commit to mnaichuk/peatio that referenced this pull request Apr 19, 2019
* Change redirect_to to render (openware#2113)

* Rewrite callbacks for avoid using redirect_to :back
mod pushed a commit that referenced this pull request Apr 22, 2019
* Change redirect_to to render (#2113)

* Rewrite callbacks for avoid using redirect_to :back
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

4 participants