How to set up a Ruby on Rails app with Shopify?

Hello,

i am currently attempting to develop my own custom shopify app using ruby on rails but i am facing a small issue which i am sure the solution to is pretty easy but i just cannot find it.

i have already created the app and installed it on my store and it shows on my admin dashboard successfully.

but my issue arises when i try to add a link to an action in the products_controller. i added a link to one of my actions in the products_controller but the action doesn’t ever seem to get executed for some reason. i have a feeling that it might be due to some authentication.

the products controller:

the app landing page code which loads successfully on my store:

the home controller:

the rendered app on the store:

and finally, what i get on the terminal when i click on the link:

any direction would be great thank you!!