We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Note: For general questions and feature requests please leave a message on Gitter: https://gitter.im/comfy/comfortable-mexican-sofa
Tell us what should happen
{{ cms:partial "path/to/partial", local_var: "value" }}
<%= render partial: "path/to/partial", locals: {"local_var" => "value"} %>
<%= local_var %>
<%= local_assigns["local_var"] %>
I've forked the comfy-demo to illustrate the issue. Steps to reproduce:
git clone https://github.com/lhjd/comfy-demo/
cd comfy-demo
bundle install
yarn install
rails db:create
rails db:migrate
rails db:seed
mydemo
rails 'comfy:cms_seeds:import[mydemo, mydemo]'
rails server
Actual:
Expected:
Workaround:
I've created a branch workaround to illustrate this. Steps to reproduce:
workaround
git checkout workaround
Rails version: rails (6.0.2)
CMS version: comfortable_mexican_sofa (2.0.18 e13ce5d)
Ruby version: ruby '2.6.5'
The text was updated successfully, but these errors were encountered:
I can confirm this is happening.
Sorry, something went wrong.
No branches or pull requests
Note: For general questions and feature requests please leave a message
on Gitter: https://gitter.im/comfy/comfortable-mexican-sofa
Expected behavior
Tell us what should happen
Actual behavior
Steps to reproduce
{{ cms:partial "path/to/partial", local_var: "value" }}
<%= render partial: "path/to/partial", locals: {"local_var" => "value"} %>
<%= local_var %>
will not be rendered.<%= local_assigns["local_var"] %>
to render.I've forked the comfy-demo to illustrate the issue.
Steps to reproduce:
git clone https://github.com/lhjd/comfy-demo/
cd comfy-demo
bundle install
yarn install
rails db:create
rails db:migrate
rails db:seed
- to create a demo site calledmydemo
rails 'comfy:cms_seeds:import[mydemo, mydemo]'
- import frommydemo
cms seeds folder tomydemo
siterails server
Actual:
Expected:
Workaround:
<%= local_assigns["local_var"] %>
instead of<%= local_var %>
in the partial templateI've created a branch
workaround
to illustrate this.Steps to reproduce:
git checkout workaround
System configuration
Rails version:
rails (6.0.2)
CMS version:
comfortable_mexican_sofa (2.0.18 e13ce5d)
Ruby version:
ruby '2.6.5'
The text was updated successfully, but these errors were encountered: