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!
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.
Under spec/dummy/app/channels, matestack_ui_vuejs_channel.rb should be renamed to matestack_ui_vue_js_channel.rb
For consistency, under spec/dummy/app/javascript/channels, matestack_ui_vuejs_channel.js should be renamed to matestack_ui_vue_js_channel.js as well.
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)
What is the current behavior?
When running the rails server on the dummy app by executing
and visiting
localhost:3000
, the logs consistently outputThis seems to be because of the constant autoloading where it expects a file
matestack_ui_vuejs_channel
to hold a constant calledMatestackUiVuejsChannel
. Instead, the constant is defined asMatestackUiVueJsChannel
with a capitalizedJs
.spec/dummy/app/channels
,matestack_ui_vuejs_channel.rb
should be renamed tomatestack_ui_vue_js_channel.rb
spec/dummy/app/javascript/channels
,matestack_ui_vuejs_channel.js
should be renamed tomatestack_ui_vue_js_channel.js
as well.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