Skip to content

Commit

Permalink
Fix installing Solid Cable (#31)
Browse files Browse the repository at this point in the history
Previously it failed with solid_cable/lib/generators/solid_cable/install/templates/config/cable.yml:3:in template: undefined local variable or method console for an instance of SolidCable::InstallGenerator (NameError)

After adding an ERB escape, ie <%% it was having the same issue in final Rails app.
  • Loading branch information
morgoth authored Sep 16, 2024
1 parent cc9a6c7 commit 87eeb39
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Async adapter only works within the same process, so for manually triggering cable updates from a console,
# and seeing results in the browser, you must do so from the web console (running inside the dev process),
# not a terminal started via bin/rails console! Add "console" to any action or "<%= console %>" in any view
# not a terminal started via bin/rails console! Add "console" to any action or any ERB template view
# to make the web console appear.
development:
adapter: async
Expand Down

0 comments on commit 87eeb39

Please sign in to comment.