Skip to content

Conversation

Bharat311
Copy link

Currently, remotipart only allows us to render partials with ajax forms having file uploads. This PR provides a class 'RedirectToOverrides' similar to existing 'RenderOverrides' that can handle 'redirect_to' in case of file uploads done via remotipart.

@johnnyshields
Copy link

👍 +1 using this successfully in production

Choose a reason for hiding this comment

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

I think we should use send instead of class_eval, it will make code faster.

@johnnyshields
Copy link

@JangoSteve any chance of getting this merged?

@esbanarango
Copy link
Collaborator

@johnnyshields I'll check this.

Choose a reason for hiding this comment

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

This doesn't seem to handle the case of something like redirect_to @post

@jszwedko
Copy link

Would love to see this merged, just ran into it today -- working around it by vendoring the above file and including in ApplicationController.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants