Previews

No matching results.

ActionView::Template::Error

undefined local variable or method `classes' for an instance of #<Class:0x00007fc2385323a0>
/project/test/components/pages/10_css_class_utils.md.erb [line 153]
148
149
150
151
152
153
154
155
156
157
158
## Usage in Views
The `classes` method can be used directly in your ERB templates:
```erb
<%= tag.div(classes: classes) do %>
<!-- Component content -->
<% end %>
```
This will automatically include the base class and all active modifiers.

Full stack trace:

inline template:153:in `_inline_template___1801984075067906650_163260'
/project/vendor/bundle/ruby/3.3.0/gems/actionview-8.1.1/lib/action_view/base.rb:281:in `public_send'
/project/vendor/bundle/ruby/3.3.0/gems/actionview-8.1.1/lib/action_view/base.rb:281:in `_run'
/project/vendor/bundle/ruby/3.3.0/gems/actionview-8.1.1/lib/action_view/template.rb:284:in `block in render'
/project/vendor/bundle/ruby/3.3.0/gems/activesupport-8.1.1/lib/active_support/notifications.rb:212:in `instrument'
/project/vendor/bundle/ruby/3.3.0/gems/actionview-8.1.1/lib/action_view/template.rb:583:in `instrument_render_template'
/project/vendor/bundle/ruby/3.3.0/gems/actionview-8.1.1/lib/action_view/template.rb:272:in `render'
/project/vendor/bundle/ruby/3.3.0/gems/actionview-8.1.1/lib/action_view/renderer/template_renderer.rb:66:in `block (2 levels) in render_template'
/project/vendor/bundle/ruby/3.3.0/gems/activesupport-8.1.1/lib/active_support/notifications.rb:210:in `block in instrument'
/project/vendor/bundle/ruby/3.3.0/gems/activesupport-8.1.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
/project/vendor/bundle/ruby/3.3.0/gems/activesupport-8.1.1/lib/active_support/notifications.rb:210:in `instrument'
/project/vendor/bundle/ruby/3.3.0/gems/actionview-8.1.1/lib/action_view/renderer/template_renderer.rb:60:in `block in render_template'
/project/vendor/bundle/ruby/3.3.0/gems/actionview-8.1.1/lib/action_view/renderer/template_renderer.rb:80:in `render_with_layout'
/project/vendor/bundle/ruby/3.3.0/gems/actionview-8.1.1/lib/action_view/renderer/template_renderer.rb:59:in `render_template'
/project/vendor/bundle/ruby/3.3.0/gems/actionview-8.1.1/lib/action_view/renderer/template_renderer.rb:11:in `render'
/project/vendor/bundle/ruby/3.3.0/gems/actionview-8.1.1/lib/action_view/renderer/renderer.rb:58:in `render_template_to_object'
/project/vendor/bundle/ruby/3.3.0/gems/actionview-8.1.1/lib/action_view/renderer/renderer.rb:31:in `render_to_object'
/project/vendor/bundle/ruby/3.3.0/gems/actionview-8.1.1/lib/action_view/rendering.rb:136:in `block in _render_template'
/project/vendor/bundle/ruby/3.3.0/gems/actionview-8.1.1/lib/action_view/base.rb:308:in `in_rendering_context'
/project/vendor/bundle/ruby/3.3.0/gems/actionview-8.1.1/lib/action_view/rendering.rb:135:in `_render_template'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_controller/metal/streaming.rb:179:in `_render_template'
/project/vendor/bundle/ruby/3.3.0/gems/actionview-8.1.1/lib/action_view/rendering.rb:122:in `render_to_body'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_controller/metal/rendering.rb:192:in `render_to_body'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_controller/metal/renderers.rb:155:in `render_to_body'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/abstract_controller/rendering.rb:46:in `render_to_string'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_controller/metal/rendering.rb:181:in `render_to_string'
/project/vendor/bundle/ruby/3.3.0/gems/lookbook-2.3.13/app/controllers/lookbook/page_controller.rb:19:in `block in render_page'
/project/vendor/bundle/ruby/3.3.0/gems/lookbook-2.3.13/lib/lookbook/services/templates/action_view_config_handler.rb:14:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/lookbook-2.3.13/lib/lookbook/support/service.rb:4:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/lookbook-2.3.13/app/controllers/lookbook/page_controller.rb:18:in `render_page'
/project/vendor/bundle/ruby/3.3.0/gems/lookbook-2.3.13/app/controllers/lookbook/pages_controller.rb:20:in `show'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_controller/metal/basic_implicit_render.rb:8:in `send_action'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/abstract_controller/base.rb:221:in `process_action'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_controller/metal/rendering.rb:199:in `process_action'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/abstract_controller/callbacks.rb:267:in `block in process_action'
/project/vendor/bundle/ruby/3.3.0/gems/activesupport-8.1.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/project/vendor/bundle/ruby/3.3.0/gems/turbo-rails-2.0.20/lib/turbo-rails.rb:24:in `with_request_id'
/project/vendor/bundle/ruby/3.3.0/gems/turbo-rails-2.0.20/app/controllers/concerns/turbo/request_id_tracking.rb:10:in `turbo_tracking_request_id'
/project/vendor/bundle/ruby/3.3.0/gems/activesupport-8.1.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/project/app/lib/loopos_ui/set_current_user_timezone.rb:19:in `set_user_timezone'
/project/vendor/bundle/ruby/3.3.0/gems/activesupport-8.1.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/project/vendor/bundle/ruby/3.3.0/gems/react-rails-3.2.1/lib/react/rails/controller_lifecycle.rb:33:in `use_react_component_helper'
/project/vendor/bundle/ruby/3.3.0/gems/activesupport-8.1.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/project/vendor/bundle/ruby/3.3.0/gems/actiontext-8.1.1/lib/action_text/rendering.rb:24:in `with_renderer'
/project/vendor/bundle/ruby/3.3.0/gems/actiontext-8.1.1/lib/action_text/engine.rb:72:in `block (4 levels) in <class:Engine>'
/project/vendor/bundle/ruby/3.3.0/gems/activesupport-8.1.1/lib/active_support/callbacks.rb:130:in `instance_exec'
/project/vendor/bundle/ruby/3.3.0/gems/activesupport-8.1.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/project/vendor/bundle/ruby/3.3.0/gems/activesupport-8.1.1/lib/active_support/callbacks.rb:141:in `run_callbacks'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/abstract_controller/callbacks.rb:266:in `process_action'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_controller/metal/rescue.rb:36:in `process_action'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_controller/metal/instrumentation.rb:76:in `block in process_action'
/project/vendor/bundle/ruby/3.3.0/gems/activesupport-8.1.1/lib/active_support/notifications.rb:210:in `block in instrument'
/project/vendor/bundle/ruby/3.3.0/gems/activesupport-8.1.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
/project/vendor/bundle/ruby/3.3.0/gems/activesupport-8.1.1/lib/active_support/notifications.rb:210:in `instrument'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_controller/metal/instrumentation.rb:75:in `process_action'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_controller/metal/params_wrapper.rb:259:in `process_action'
/project/vendor/bundle/ruby/3.3.0/gems/activerecord-8.1.1/lib/active_record/railties/controller_runtime.rb:39:in `process_action'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/abstract_controller/base.rb:154:in `process'
/project/vendor/bundle/ruby/3.3.0/gems/actionview-8.1.1/lib/action_view/rendering.rb:40:in `process'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_controller/metal.rb:252:in `dispatch'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_controller/metal.rb:335:in `dispatch'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/routing/route_set.rb:50:in `serve'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/journey/router.rb:35:in `block in serve'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/journey/router.rb:86:in `block in recognize'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/journey/router.rb:66:in `each'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/journey/router.rb:66:in `recognize'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/journey/router.rb:31:in `serve'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/routing/route_set.rb:906:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/railties-8.1.1/lib/rails/engine.rb:534:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/railties-8.1.1/lib/rails/railtie.rb:225:in `public_send'
/project/vendor/bundle/ruby/3.3.0/gems/railties-8.1.1/lib/rails/railtie.rb:225:in `method_missing'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/routing/mapper.rb:33:in `block in <class:Constraints>'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/routing/mapper.rb:62:in `serve'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/journey/router.rb:35:in `block in serve'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/journey/router.rb:92:in `block in recognize'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/journey/router.rb:66:in `each'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/journey/router.rb:66:in `recognize'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/journey/router.rb:31:in `serve'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/routing/route_set.rb:906:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/middleware/static.rb:27:in `call'
/project/lib/loopos_ui/middleware/opt_in_features.rb:19:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/rack-3.2.4/lib/rack/static.rb:162:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/rack-3.2.4/lib/rack/static.rb:162:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/rack-3.2.4/lib/rack/tempfile_reaper.rb:20:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/rack-3.2.4/lib/rack/etag.rb:29:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/rack-3.2.4/lib/rack/conditional_get.rb:31:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/rack-3.2.4/lib/rack/head.rb:15:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/http/content_security_policy.rb:38:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/rack-session-2.1.1/lib/rack/session/abstract/id.rb:274:in `context'
/project/vendor/bundle/ruby/3.3.0/gems/rack-session-2.1.1/lib/rack/session/abstract/id.rb:268:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/middleware/cookies.rb:708:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/middleware/callbacks.rb:31:in `block in call'
/project/vendor/bundle/ruby/3.3.0/gems/activesupport-8.1.1/lib/active_support/callbacks.rb:101:in `run_callbacks'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/middleware/callbacks.rb:30:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/middleware/debug_exceptions.rb:31:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/middleware/show_exceptions.rb:32:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/railties-8.1.1/lib/rails/rack/logger.rb:41:in `call_app'
/project/vendor/bundle/ruby/3.3.0/gems/railties-8.1.1/lib/rails/rack/logger.rb:29:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/middleware/remote_ip.rb:98:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/middleware/request_id.rb:34:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/rack-3.2.4/lib/rack/method_override.rb:28:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/rack-3.2.4/lib/rack/runtime.rb:24:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/middleware/executor.rb:20:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/middleware/static.rb:27:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/rack-3.2.4/lib/rack/sendfile.rb:131:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/actionpack-8.1.1/lib/action_dispatch/middleware/ssl.rb:92:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/railties-8.1.1/lib/rails/engine.rb:534:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/puma-7.1.0/lib/puma/configuration.rb:300:in `call'
/project/vendor/bundle/ruby/3.3.0/gems/puma-7.1.0/lib/puma/request.rb:101:in `block in handle_request'
/project/vendor/bundle/ruby/3.3.0/gems/puma-7.1.0/lib/puma/thread_pool.rb:355:in `with_force_shutdown'
/project/vendor/bundle/ruby/3.3.0/gems/puma-7.1.0/lib/puma/request.rb:100:in `handle_request'
/project/vendor/bundle/ruby/3.3.0/gems/puma-7.1.0/lib/puma/server.rb:503:in `process_client'
/project/vendor/bundle/ruby/3.3.0/gems/puma-7.1.0/lib/puma/server.rb:262:in `block in run'
/project/vendor/bundle/ruby/3.3.0/gems/puma-7.1.0/lib/puma/thread_pool.rb:182:in `block in spawn_thread'