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

ENHANCEMENT: rafactor the redirecting form submit to be more explicit #472

Closed
wants to merge 1 commit into from

Conversation

mateusz
Copy link
Contributor

@mateusz mateusz commented May 21, 2012

Follow up to #464

This is just an enhancement, but I'd like to discuss this a bit further.

@ingo or anyone who knows how PJAX stuff works, can you have a look here? I'm not sure what is the best way to do it - this solution seems right from the logical standpoint - we are explicitly requesting what we need. But the expected behaviour is configured on FormAction::create, which means it's quite hidden, and we can't react to user input by branching out to serving different things.

From the programmer's perspective, it would be easier to be able to specify what is served more like with a Director::redirect, where the decision is made at the end of the control flow. Like here: https://github.com/mateusz/sapphire/compare/os7299bis

What do you think?

Asking people to remember and set a predefined class is not a good idea.
@mateusz
Copy link
Contributor Author

mateusz commented May 23, 2012

@sminnee so I think this is not the way to go. I think #488 would be better and addresses your concern around changes to FormAction.

@mateusz mateusz closed this May 23, 2012
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