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

Use stream actions #6

Draft
wants to merge 2 commits into
base: initial
Choose a base branch
from
Draft

Use stream actions #6

wants to merge 2 commits into from

Conversation

jorgemanrubia
Copy link
Member

Notice this only creates one stream action for a specific action and broadcast (task update).

@@ -0,0 +1 @@
<%= render "tasks/update", task: @task, project: @project %>

Choose a reason for hiding this comment

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

why do you use an extra _update partial in the update template?

Copy link
Member Author

Choose a reason for hiding this comment

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

@yshmarov because I want to use the same content for:

  1. The controller response (update.html.erb), which is not a partial, but an action template.
  2. The broadcasted partial (_update.html.erb).

It's just to reuse the same code in both.

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.

None yet

2 participants