aviflombaum / shadcn-rails

https://shadcn.rails-components.com
MIT License
470 stars 32 forks source link

Syntax Error in Components::FilterHelper#list_item #60

Open Ya-Suzuki opened 1 month ago

Ya-Suzuki commented 1 month ago

Steps to reproduce

  1. Run bin/setup
  2. Run bin/dev
  3. Access localhost:3000 and the following error occurs:
    web    | SyntaxError (.../shadcn-rails/app/helpers/components/filter_helper.rb:13: syntax error, unexpected symbol literal, expecting ')'
    web    |   def list_item(:value, :name, :selected)
    web    |                 ^
    web    | .../shadcn-rails/app/helpers/components/filter_helper.rb:16: syntax error, unexpected `end'):
    web    |   
    web    | app/helpers/components/filter_helper.rb:13: syntax error, unexpected symbol literal, expecting ')'
    web    | app/helpers/components/filter_helper.rb:16: syntax error, unexpected `end'
    web    | app/helpers/components/filter_helper.rb:13: syntax error, unexpected symbol literal, expecting ')'
    web    | app/helpers/components/filter_helper.rb:16: syntax error, unexpected `end'
    web    | app/helpers/components/filter_helper.rb:13: syntax error, unexpected symbol literal, expecting ')'
    web    | app/helpers/components/filter_helper.rb:16: syntax error, unexpected `end'
    web    | app/controllers/components_controller.rb:1:in `<main>'

    Also, the same error occurs if access the Rails application after running rails generate shadcn-ui filter.