For what is the virtual attribute on a page used?
I’d seen it, but hadn’t thought about it until now.
For what is the virtual attribute on a page used?
I’d seen it, but hadn’t thought about it until now.
Virtual pages potentially respond to more than one URL. The
quintessential cases are the FileNotFoundPage (when a page is not found,
i.e. 404) and the ArchiveXXXPage (for dynamic year, month, day
archives). They usually require a parent page to define when they will
be used instead of a regular page.
Sean
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs