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

Render files #451

Open
OnlyReFLeX opened this issue Dec 29, 2018 · 0 comments
Open

Render files #451

OnlyReFLeX opened this issue Dec 29, 2018 · 0 comments

Comments

@OnlyReFLeX
Copy link

Hello

I render partial, and I want to get rid of it.
image

I tried using:

json.array! @posts, partial: 'posts/post', as: :post
json.partial! 'posts/post', collection: @posts, as: :post
json.partial! partial: 'posts/post', collection: @posts, as: :post
json.comments @post.comments, partial: 'comments/comment', as: :comment

But all is useless
How to be?

P.S. my code

json.data do
  json.array! @manager.resources, partial: 'workers/orders/order', as: :order
end
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