You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is because you expect @resource in template, but only array of @resources is defined in controller.
I'm not sure how to handle this in returned views, but now you're returning only last image for example regardless multiple images were created. Images works only because @image is defined in controller.
Probably you'll need to use separate views for show and create (just array of show view) to return list of created resources for create action.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the tip @simi!
I will come back to this when i will have my refinerycms_middleman extension working.
I've created this issue #3 to be sure to fix this problem :)
75798be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @bricesanchez!
This is because you expect
@resource
in template, but only array of@resources
is defined in controller.I'm not sure how to handle this in returned views, but now you're returning only last image for example regardless multiple images were created. Images works only because
@image
is defined in controller.Probably you'll need to use separate views for show and create (just array of show view) to return list of created resources for create action.
75798be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the tip @simi!
I will come back to this when i will have my
refinerycms_middleman
extension working.I've created this issue #3 to be sure to fix this problem :)