IssueRaiser

Add supports for `render` in controllers

I published a [gem that adds support for `render` in Rails controllers when using Turbolinks](https://github.com/jorgemanrubia/turbolinks_render). I think this should be officially supported by Turbolinks and I am willing to work on that PR. I would include a comprehensive suite of tests as part of the PR, and I am willing to follow any guideline or consideration you may have. I just don't want to do the work if there is no hope to have it used. As mentioned [in this comment](https://github.com/turbolinks/turbolinks/issues/85#issuecomment-398191163): > I think the situation right now is inconsistent and can be really confusing: > > - Rails 5 adds Turbolinks by default > - Forms are remote by default > - `render` won't work with the defaults mentioned above. > > The fact that forms in scaffolds are generated with `local: true` in Rails 5.2 looks like an smell to me. The vanilla code generated by Rails won't use its own defaults!

Posted by jorgemanrubia on Jun 18, 2018, 8:59 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.4,000 issues0 comments

support (Software)

Add supports for `render` in controllers

jorgemanrubiaJun 18, 2018, 8:59 PM

I published a [gem that adds support for `render` in Rails controllers when using Turbolinks](https://github.com/jorgemanrubia/turbolinks_render). I think this should be officially supported by Turbolinks and I am willing to work on that PR. I would include a comprehensive suite of tests as part of the PR, and I am willing to follow any guideline or consideration you may have. I just don't want to do the work if there is no hope to have it used. As mentioned [in this comment](https://github.com/turbolinks/turbolinks/issues/85#issuecomment-398191163): > I think the situation right now is inconsistent and can be really confusing: > > - Rails 5 adds Turbolinks by default > - Forms are remote by default > - `render` won't work with the defaults mentioned above. > > The fact that forms in scaffolds are generated with `local: true` in Rails 5.2 looks like an smell to me. The vanilla code generated by Rails won't use its own defaults!

Comments (0)

No comments yet. Start the discussion.

Comment on this issue