matestack / matestack-ui-bootstrap

As an extension for Matestack Ui Core, Matestack Ui Bootstrap ships all you need to build beautiful, reactive UIs in pure Ruby and smart CRUD components based on Bootstrap v5. Don't think about styling anymore and just create admin or application UIs faster than ever before!
https://docs.matestack.io/matestack-ui-bootstrap
MIT License
11 stars 4 forks source link

`MatestackUiVueJsChannel` in dummy app is not found #28

Closed aaron-contreras closed 1 year ago

aaron-contreras commented 1 year ago

What is the current behavior?

When running the rails server on the dummy app by executing

docker-compose up dummy

and visiting localhost:3000, the logs consistently output

matestack-ui-bootstrap-dummy-1  | Started GET "/cable" for 172.18.0.1 at 2023-04-11 15:38:49 +0000
matestack-ui-bootstrap-dummy-1  | Started GET "/cable/" [WebSocket] for 172.18.0.1 at 2023-04-11 15:38:49 +0000
matestack-ui-bootstrap-dummy-1  | Successfully upgraded to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: Upgrade, HTTP_UPGRADE: websocket)
matestack-ui-bootstrap-dummy-1  | Subscription class not found: "MatestackUiVueJsChannel"
matestack-ui-bootstrap-dummy-1  | Subscription class not found: "MatestackUiVueJsChannel"
matestack-ui-bootstrap-dummy-1  | Subscription class not found: "MatestackUiVueJsChannel"
matestack-ui-bootstrap-dummy-1  | Subscription class not found: "MatestackUiVueJsChannel"
matestack-ui-bootstrap-dummy-1  | Subscription class not found: "MatestackUiVueJsChannel"
matestack-ui-bootstrap-dummy-1  | Subscription class not found: "MatestackUiVueJsChannel"
matestack-ui-bootstrap-dummy-1  | Subscription class not found: "MatestackUiVueJsChannel"
...
...
...
...

This seems to be because of the constant autoloading where it expects a file matestack_ui_vuejs_channel to hold a constant called MatestackUiVuejsChannel. Instead, the constant is defined as MatestackUiVueJsChannel with a capitalized Js.

What is the expected behavior?

Subscription class should be found and not log out this error.

Which versions of Matestack, and which browser/OS are affected by this issue? Did this work in previous versions of Matestack?

Browser: Safari OS: OSX Ventura 13.3.1 Running from main branch on matestack-ui-bootstrap on commit e07691c

bash-5.0# gem list | grep matestack
matestack-ui-core (3.0.1)
matestack-ui-vuejs (3.1.0)