Previews

No matching results.

ActionView::Template::Error

undefined method 'to_model' for true
/usr/src/app/previews/pages/forms/inputs/multi_input.md.erb
1
2
3
4
5
Multi inputs are comprised of multiple constituent fields, only one of which is visible
at a given time. They are designed for situations where constituent inputs are shown or
hidden based on the value of another field. For example, consider an address form. If
the user chooses the USA as the country, the region input should show a list of states
and US territories; if the user instead chooses Canada, the region input should show a

Full stack trace:

/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/routing/polymorphic_routes.rb:273:in 'ActionDispatch::Routing::PolymorphicRoutes::HelperMethodBuilder#handle_model'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/routing/polymorphic_routes.rb:288:in 'ActionDispatch::Routing::PolymorphicRoutes::HelperMethodBuilder#handle_model_call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionview-7.2.2.1/lib/action_view/routing_url_for.rb:119:in 'ActionView::RoutingUrlFor#url_for'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionview-7.2.2.1/lib/action_view/helpers/url_helper.rb:704:in 'ActionView::Helpers::UrlHelper#url_target'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionview-7.2.2.1/lib/action_view/helpers/url_helper.rb:204:in 'ActionView::Helpers::UrlHelper#link_to'
/usr/src/app/lib/primer/yard/lookbook_docs_helper.rb:23:in 'Primer::Yard::LookbookDocsHelper#link_to_component'
inline template:179:in '_inline_template___62777356866935945_57848'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionview-7.2.2.1/lib/action_view/base.rb:281:in 'Kernel#public_send'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionview-7.2.2.1/lib/action_view/base.rb:281:in 'ActionView::Base#_run'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionview-7.2.2.1/lib/action_view/template.rb:285:in 'block in ActionView::Template#render'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/activesupport-7.2.2.1/lib/active_support/notifications.rb:212:in 'ActiveSupport::Notifications.instrument'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionview-7.2.2.1/lib/action_view/template.rb:584:in 'ActionView::Template#instrument_render_template'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionview-7.2.2.1/lib/action_view/template.rb:273:in 'ActionView::Template#render'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionview-7.2.2.1/lib/action_view/renderer/template_renderer.rb:66:in 'block (2 levels) in ActionView::TemplateRenderer#render_template'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/activesupport-7.2.2.1/lib/active_support/notifications.rb:210:in 'block in ActiveSupport::Notifications.instrument'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/activesupport-7.2.2.1/lib/active_support/notifications/instrumenter.rb:58:in 'ActiveSupport::Notifications::Instrumenter#instrument'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/activesupport-7.2.2.1/lib/active_support/notifications.rb:210:in 'ActiveSupport::Notifications.instrument'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionview-7.2.2.1/lib/action_view/renderer/template_renderer.rb:60:in 'block in ActionView::TemplateRenderer#render_template'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionview-7.2.2.1/lib/action_view/renderer/template_renderer.rb:80:in 'ActionView::TemplateRenderer#render_with_layout'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionview-7.2.2.1/lib/action_view/renderer/template_renderer.rb:59:in 'ActionView::TemplateRenderer#render_template'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionview-7.2.2.1/lib/action_view/renderer/template_renderer.rb:11:in 'ActionView::TemplateRenderer#render'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionview-7.2.2.1/lib/action_view/renderer/renderer.rb:58:in 'ActionView::Renderer#render_template_to_object'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionview-7.2.2.1/lib/action_view/renderer/renderer.rb:31:in 'ActionView::Renderer#render_to_object'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionview-7.2.2.1/lib/action_view/rendering.rb:135:in 'block in ActionView::Rendering#_render_template'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionview-7.2.2.1/lib/action_view/base.rb:308:in 'ActionView::Base#in_rendering_context'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionview-7.2.2.1/lib/action_view/rendering.rb:134:in 'ActionView::Rendering#_render_template'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_controller/metal/streaming.rb:258:in 'ActionController::Streaming#_render_template'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionview-7.2.2.1/lib/action_view/rendering.rb:121:in 'ActionView::Rendering#render_to_body'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_controller/metal/rendering.rb:186:in 'ActionController::Rendering#render_to_body'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_controller/metal/renderers.rb:142:in 'ActionController::Renderers#render_to_body'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/abstract_controller/rendering.rb:47:in 'AbstractController::Rendering#render_to_string'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_controller/metal/rendering.rb:175:in 'ActionController::Rendering#render_to_string'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/lookbook-2.3.14/app/controllers/lookbook/page_controller.rb:19:in 'block in Lookbook::PageController#render_page'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/lookbook-2.3.14/lib/lookbook/services/templates/action_view_config_handler.rb:14:in 'Lookbook::ActionViewConfigHandler#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/lookbook-2.3.14/lib/lookbook/support/service.rb:4:in 'Lookbook::Service.call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/lookbook-2.3.14/app/controllers/lookbook/page_controller.rb:18:in 'Lookbook::PageController#render_page'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/lookbook-2.3.14/app/controllers/lookbook/pages_controller.rb:20:in 'Lookbook::PagesController#show'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_controller/metal/basic_implicit_render.rb:8:in 'ActionController::BasicImplicitRender#send_action'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/abstract_controller/base.rb:226:in 'AbstractController::Base#process_action'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_controller/metal/rendering.rb:193:in 'ActionController::Rendering#process_action'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/abstract_controller/callbacks.rb:261:in 'block in AbstractController::Callbacks#process_action'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:110:in 'ActiveSupport::Callbacks#run_callbacks'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/abstract_controller/callbacks.rb:260:in 'AbstractController::Callbacks#process_action'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_controller/metal/rescue.rb:27:in 'ActionController::Rescue#process_action'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_controller/metal/instrumentation.rb:77:in 'block in ActionController::Instrumentation#process_action'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/activesupport-7.2.2.1/lib/active_support/notifications.rb:210:in 'block in ActiveSupport::Notifications.instrument'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/activesupport-7.2.2.1/lib/active_support/notifications/instrumenter.rb:58:in 'ActiveSupport::Notifications::Instrumenter#instrument'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/activesupport-7.2.2.1/lib/active_support/notifications.rb:210:in 'ActiveSupport::Notifications.instrument'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_controller/metal/instrumentation.rb:76:in 'ActionController::Instrumentation#process_action'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_controller/metal/params_wrapper.rb:259:in 'ActionController::ParamsWrapper#process_action'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/abstract_controller/base.rb:163:in 'AbstractController::Base#process'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionview-7.2.2.1/lib/action_view/rendering.rb:40:in 'ActionView::Rendering#process'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_controller/metal.rb:252:in 'ActionController::Metal#dispatch'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_controller/metal.rb:335:in 'ActionController::Metal.dispatch'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/routing/route_set.rb:67:in 'ActionDispatch::Routing::RouteSet::Dispatcher#dispatch'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/routing/route_set.rb:50:in 'ActionDispatch::Routing::RouteSet::Dispatcher#serve'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/journey/router.rb:53:in 'block in ActionDispatch::Journey::Router#serve'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/journey/router.rb:133:in 'block in ActionDispatch::Journey::Router#find_routes'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/journey/router.rb:126:in 'Array#each'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/journey/router.rb:126:in 'ActionDispatch::Journey::Router#find_routes'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/journey/router.rb:34:in 'ActionDispatch::Journey::Router#serve'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/routing/route_set.rb:896:in 'ActionDispatch::Routing::RouteSet#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/railties-7.2.2.1/lib/rails/engine.rb:535:in 'Rails::Engine#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/railties-7.2.2.1/lib/rails/railtie.rb:226:in 'Kernel#public_send'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/railties-7.2.2.1/lib/rails/railtie.rb:226:in 'Rails::Railtie.method_missing'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/routing/mapper.rb:33:in 'block in <class:Constraints>'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/routing/mapper.rb:62:in 'ActionDispatch::Routing::Mapper::Constraints#serve'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/journey/router.rb:53:in 'block in ActionDispatch::Journey::Router#serve'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/journey/router.rb:133:in 'block in ActionDispatch::Journey::Router#find_routes'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/journey/router.rb:126:in 'Array#each'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/journey/router.rb:126:in 'ActionDispatch::Journey::Router#find_routes'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/journey/router.rb:34:in 'ActionDispatch::Journey::Router#serve'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/routing/route_set.rb:896:in 'ActionDispatch::Routing::RouteSet#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/kuby-core-0.20.2/lib/kuby/middleware/health_check.rb:13:in 'Kuby::Middleware::HealthCheck#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/rack-3.1.21/lib/rack/static.rb:165:in 'Rack::Static#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/rack-3.1.21/lib/rack/tempfile_reaper.rb:20:in 'Rack::TempfileReaper#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/rack-3.1.21/lib/rack/etag.rb:29:in 'Rack::ETag#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/rack-3.1.21/lib/rack/conditional_get.rb:31:in 'Rack::ConditionalGet#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/rack-3.1.21/lib/rack/head.rb:15:in 'Rack::Head#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/http/permissions_policy.rb:38:in 'ActionDispatch::PermissionsPolicy::Middleware#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/http/content_security_policy.rb:38:in 'ActionDispatch::ContentSecurityPolicy::Middleware#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.2/lib/rack/session/abstract/id.rb:274:in 'Rack::Session::Abstract::Persisted#context'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.2/lib/rack/session/abstract/id.rb:268:in 'Rack::Session::Abstract::Persisted#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/middleware/cookies.rb:704:in 'ActionDispatch::Cookies#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/middleware/callbacks.rb:31:in 'block in ActionDispatch::Callbacks#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:101:in 'ActiveSupport::Callbacks#run_callbacks'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/middleware/callbacks.rb:30:in 'ActionDispatch::Callbacks#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/middleware/debug_exceptions.rb:31:in 'ActionDispatch::DebugExceptions#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/middleware/show_exceptions.rb:32:in 'ActionDispatch::ShowExceptions#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/railties-7.2.2.1/lib/rails/rack/logger.rb:41:in 'Rails::Rack::Logger#call_app'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/railties-7.2.2.1/lib/rails/rack/logger.rb:29:in 'Rails::Rack::Logger#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/middleware/remote_ip.rb:96:in 'ActionDispatch::RemoteIp#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/middleware/request_id.rb:33:in 'ActionDispatch::RequestId#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/rack-3.1.21/lib/rack/method_override.rb:28:in 'Rack::MethodOverride#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/rack-3.1.21/lib/rack/runtime.rb:24:in 'Rack::Runtime#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/middleware/executor.rb:16:in 'ActionDispatch::Executor#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/actionpack-7.2.2.1/lib/action_dispatch/middleware/static.rb:27:in 'ActionDispatch::Static#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/rack-3.1.21/lib/rack/sendfile.rb:131:in 'Rack::Sendfile#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/rack-cors-3.0.0/lib/rack/cors.rb:102:in 'Rack::Cors#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/railties-7.2.2.1/lib/rails/engine.rb:535:in 'Rails::Engine#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/puma-8.0.2/lib/puma/configuration.rb:305:in 'Puma::Configuration::ConfigMiddleware#call'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/puma-8.0.2/lib/puma/response.rb:79:in 'block in Puma::Response#handle_request'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/puma-8.0.2/lib/puma/thread_pool.rb:434:in 'Puma::ThreadPool#with_force_shutdown'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/puma-8.0.2/lib/puma/response.rb:78:in 'Puma::Response#handle_request'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/puma-8.0.2/lib/puma/server.rb:508:in 'Puma::Server#process_client'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/puma-8.0.2/lib/puma/server.rb:263:in 'block in Puma::Server#run'
/usr/src/app/demo/vendor/bundle/ruby/3.4.0/gems/puma-8.0.2/lib/puma/thread_pool.rb:246:in 'block in Puma::ThreadPool#spawn_thread'