In The Real World

This is a premium course, which you can purchase below.

Buy Now

We've cover most of the Spina concepts which should set us up for success. That said, you will probably not want your entire site controlled by this package.


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:

@page = Spina::Page.find_by(slug: params[:slug])
@page = Spina::Page.i18n.find_by(materialized_path: "#{params[:slug]")