Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

See field setting with slug="gallery-image" on component with id="self.if" #205

Closed
a-barbieri opened this issue Sep 3, 2018 · 0 comments
Labels

Comments

@a-barbieri
Copy link
Collaborator

a-barbieri commented Sep 3, 2018

Expected behavior

This error returns self.id.

ActionView::Template::Error (Looks like the image you are looking for isn't present. See field setting with slug="gallery-image" on component with id="self.id")

Actual behavior

I guess it should be 2 (supposing id=2)

ActionView::Template::Error (Looks like the image you are looking for isn't present. See field setting with slug="gallery-image" on component with id="2")

How to reproduce the issue

  1. create a fieldsetting for an image field (say slug is my-iamge).
  2. create a component
  3. create a view that calls the image on that component (component.get_image_url('my-image'))
  4. if there is no image you should see that error in your app logs

System configuration

Binda version: 0.1.9

Rails version: 5.1.2

@a-barbieri a-barbieri added the bug label May 17, 2019
a-barbieri added a commit to a-barbieri/binda that referenced this issue May 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant