refinery / refinerycms

An extendable Ruby on Rails CMS that supports Rails 6.0+
https://www.refinerycms.com/
MIT License
3.9k stars 1.26k forks source link

Unable to access the CMS pages link in ruby project as well as contain of CMS in ruby project #3511

Open bhavesh8000 opened 2 years ago

bhavesh8000 commented 2 years ago

Hello team!

Can anyone please help me out to get the Refinery CMS pages contain in my rail project's page view

One more thing is I was unable to access the cms page link in rails application header and same where I was in CMS pages I can not access the application's header menu any links are not working vise versa

We use refinery by installing the GEM its work like a charm to create CMS pages but now I wanted to access that created blogs created pages HTML in my rails application and wanted to use common header footer for rails app and CMS pages

Thank you for any insight on this

anitagraham commented 2 years ago

The paths for pages come from refinery routes. In your main app, config/routes.rb you wil have mounted the refinery engine at a mount point. Refinery routes all descend (?) from that mount point.

Depending on your routing, you may access a page by its :slug as site.tld/slug. If you are getting the links in a controller action, you need look at the refinery routes.