# We don't have a turbo\_stream.morph helper yet?

**URL:** <https://discuss.hotwired.dev/t/we-dont-have-a-turbo-stream-morph-helper-yet/5716>\
**Category:** General\
**Created:** [March 18, 2024, 5:42am UTC](https://discuss.hotwired.dev/t/we-dont-have-a-turbo-stream-morph-helper-yet/5716 "2024-03-18T05:42:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SyedMSawaid](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/syedmsawaid/32/3151_2.png) [@SyedMSawaid](https://discuss.hotwired.dev/u/SyedMSawaid)\
**Post date:** [March 18, 2024, 5:42am UTC](https://discuss.hotwired.dev/t/we-dont-have-a-turbo-stream-morph-helper-yet/5716/1 "2024-03-18T05:42:13Z")

</div>

I am trying to do something like this,

```ruby
# toggle.turbo_stream.erb
<%= turbo_stream.morph "completed_todos_section" do %>
  <%= render partial: "some_model/completed_todos", locals: {todos: @completed_todos } %>
<% end %>

```

and it results in

```auto
Showing app/views/todos/toggle.turbo_stream.erb where line #3 raised:
undefined method `morph' for #<Turbo::Streams::TagBuilder:0x00007f314f0d5908 @view_context=#<ActionView::Base:0x000000000529e0>>

```

So, we don’t have a helper method for morphing right now?

---

<div class="post-metadata">

**Author:** ![SyedMSawaid](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/syedmsawaid/32/3151_2.png) [@SyedMSawaid](https://discuss.hotwired.dev/u/SyedMSawaid)\
**Post date:** [March 18, 2024, 5:47am UTC](https://discuss.hotwired.dev/t/we-dont-have-a-turbo-stream-morph-helper-yet/5716/2 "2024-03-18T05:47:50Z")

</div>

We do have a `morph` helper method. So why isn’t it working?

> <https://github.com/hotwired/turbo-rails/blob/102a491754d46f7dd924201fcfaf879a0f04b11c/app/models/turbo/streams/tag_builder.rb#L240>

---

<div class="post-metadata">

**Author:** ![SyedMSawaid](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/syedmsawaid/32/3151_2.png) [@SyedMSawaid](https://discuss.hotwired.dev/u/SyedMSawaid)\
**Post date:** [March 18, 2024, 5:59am UTC](https://discuss.hotwired.dev/t/we-dont-have-a-turbo-stream-morph-helper-yet/5716/3 "2024-03-18T05:59:07Z")

</div>

Nevermind, it was added 3 days ago.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/stimulusjs/original/2X/f/f3c357fe29ecdd17b14ae96e114fa083cca30fbd.png)

---

<div class="post-metadata">

**Author:** ![SyedMSawaid](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/syedmsawaid/32/3151_2.png) [@SyedMSawaid](https://discuss.hotwired.dev/u/SyedMSawaid)\
**Post date:** [March 18, 2024, 6:05am UTC](https://discuss.hotwired.dev/t/we-dont-have-a-turbo-stream-morph-helper-yet/5716/4 "2024-03-18T06:05:04Z")

</div>

To resolve this temporarily,

1. Add this to your `Gemfile`:

```ruby
gem 'turbo-rails', git: 'https://github.com/hotwired/turbo-rails.git', branch: 'main'

```

1. Run:

```bash
bundle install

```
