![](https://bigmachine.io/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NzcsInB1ciI6ImJsb2JfaWQifX0=--10a2ae95a949b41f901dcbdb2cd5fe41ea89aba4/eyJfcmFpbHMiOnsiZGF0YSI6e30sInB1ciI6InZhcmlhdGlvbiJ9fQ==--743878b0228ee81b4587d6ab790a4e67ea599217/introduction.png)
In The Real World
Buy or Subscribe
You can access this course in just a minute, and support my efforts to rid the world of crappy online courses!
I'm a control freak, and that means I want to own all of my routes and use Spina where I choose to. Currently, on my main site (bigmachine.io), Spina handles my courses, lessons, and old blog posts. I do not, however, let it handle the routing.
To do that, I need to know how to retrieve Spina pages:
To do that, I need to know how to retrieve Spina pages:
@page = Spina::Page.find_by(slug: params[:slug]) @page = Spina::Page.i18n.find_by(materialized_path: "#{params[:slug]")