Hi, I have a common situation: index and show actions both should render an object partial. When I place the code into the corresponding views (index.json.jb and show.json.jb) everything is good, but when I place there any modifications of render partial: 'object', collection: @objects, it renders weird output:
Hi, I have a common situation: index and show actions both should render an object partial. When I place the code into the corresponding views (index.json.jb and show.json.jb) everything is good, but when I place there any modifications of
render partial: 'object', collection: @objects
, it renders weird output:Is it me doing something wrong or is it a bug? Thank you.
Btw, I'm on Ruby 2.3.4 Rails 4.1.1