Modeling your public static pages as resources in Ruby on Rails
15-Dec-2022 1028
So, a very simple example would be for you to have a resource :privacy_policy, only [:show]. The icky thing with that is that while you are suggesting a single resource here, Rails controllers are not smart enough to acknowledge it, so you'd still need to call it from a PrivacyPoliciesController. But you most probably have just 1 policy 🤪.
Modeling your public static pages as resources in Ruby on Rails #ruby #rubydeveloper #rubyonrails #Modeling #public #static #pages #resources #Rails https://rubyonrails.ba/link/modeling-your-public-static-pages-as-resources-in-ruby-on-rails