Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `new_page_templates' for nil #1396

Open
zilton7 opened this issue Jan 2, 2025 · 0 comments
Open

undefined method `new_page_templates' for nil #1396

zilton7 opened this issue Jan 2, 2025 · 0 comments

Comments

@zilton7
Copy link

zilton7 commented Jan 2, 2025

  • Ruby 3.3.1
  • Rails 7.1.5.1

I followed the installation guide, but when I logged in I get:

image

NoMethodError in Spina::Admin::PagesController#index
undefined method `new_page_templates' for nil

        else
          @pages = Page.active.sorted.roots.main.includes(:translations)
          @page_templates = Spina::Current.theme.new_page_templates
        end
      end

Rails.root: /home/zil/DEV/RAILS/spina-cms-test
[Application Trace](http://localhost:3000/admin/login#) | [Framework Trace](http://localhost:3000/admin/login#) | [Full Trace](http://localhost:3000/admin/login#)
spina (2.5.0) app/controllers/spina/admin/pages_controller.rb:17:in `index'
actionpack (7.1.5.1) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
actionpack (7.1.5.1) lib/abstract_controller/base.rb:224:in `process_action'
actionpack (7.1.5.1) lib/action_controller/metal/rendering.rb:165:in `process_action'
actionpack (7.1.5.1) lib/abstract_controller/callbacks.rb:259:in `block in process_action'
activesupport (7.1.5.1) lib/active_support/callbacks.rb:121:in `block in run_callbacks'
turbo-rails (2.0.11) lib/turbo-rails.rb:24:in `with_request_id'
turbo-rails (2.0.11) app/controllers/concerns/turbo/request_id_tracking.rb:10:in `turbo_tracking_request_id'
activesupport (7.1.5.1) lib/active_support/callbacks.rb:130:in `block in run_callbacks'
actiontext (7.1.5.1) lib/action_text/rendering.rb:23:in `with_renderer'
actiontext (7.1.5.1) lib/action_text/engine.rb:69:in `block (4 levels) in <class:Engine>'
activesupport (7.1.5.1) lib/active_support/callbacks.rb:130:in `instance_exec'
activesupport (7.1.5.1) lib/active_support/callbacks.rb:130:in `block in run_callbacks'
activesupport (7.1.5.1) lib/active_support/callbacks.rb:141:in `run_callbacks'
actionpack (7.1.5.1) lib/abstract_controller/callbacks.rb:258:in `process_action'
actionpack (7.1.5.1) lib/action_controller/metal/rescue.rb:25:in `process_action'
actionpack (7.1.5.1) lib/action_controller/metal/instrumentation.rb:74:in `block in process_action'
activesupport (7.1.5.1) lib/active_support/notifications.rb:206:in `block in instrument'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant