Modeling your public static pages as resources in Ruby on Rails

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 https://rubyonrails.ba/single/modeling-your-public-static-pages-as-resources-in-ruby-on-rails

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles