{"id":13880391,"url":"https://github.com/DavyJonesLocker/pages","last_synced_at":"2025-07-16T16:31:41.417Z","repository":{"id":56887294,"uuid":"5360157","full_name":"DavyJonesLocker/pages","owner":"DavyJonesLocker","description":"Easy pages in Rails","archived":false,"fork":false,"pushed_at":"2016-08-26T14:34:11.000Z","size":58,"stargazers_count":49,"open_issues_count":2,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-22T17:11:25.863Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DavyJonesLocker.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-08-09T19:28:12.000Z","updated_at":"2023-04-14T06:33:05.000Z","dependencies_parsed_at":"2022-08-21T00:20:36.439Z","dependency_job_id":null,"html_url":"https://github.com/DavyJonesLocker/pages","commit_stats":null,"previous_names":["dockyard/pages"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/DavyJonesLocker/pages","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavyJonesLocker%2Fpages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavyJonesLocker%2Fpages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavyJonesLocker%2Fpages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavyJonesLocker%2Fpages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DavyJonesLocker","download_url":"https://codeload.github.com/DavyJonesLocker/pages/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavyJonesLocker%2Fpages/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265524640,"owners_count":23782016,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-06T08:03:00.024Z","updated_at":"2025-07-16T16:31:41.092Z","avatar_url":"https://github.com/DavyJonesLocker.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Pages #\n\n[![Build Status](https://secure.travis-ci.org/dockyard/pages.png?branch=master)](http://travis-ci.org/dockyard/pages)\n[![Dependency Status](https://gemnasium.com/dockyard/pages.png?travis)](https://gemnasium.com/dockyard/pages)\n[![Code Climate](https://codeclimate.com/github/dockyard/pages.png)](https://codeclimate.com/github/dockyard/pages)\n\nSimple dynamic yet static pages for a Rails app\n\n## Installation ##\n\nIn your Gemfile add the following:\n\n```ruby\ngem 'pages'\n```\n\nThen you can either create a `app/views/pages` directory\n\n```\nmkdir app/views/pages\n```\n\nOr run the generator\n\n```\nrails g pages:setup\n```\n\n## Usage ##\n\nSimply define new pages in your routes\n\n```ruby\nRails.application.routes.draw do\n  # Define a single page\n  page :about\n\n  # Define multiple pages\n  pages :contact, :team\nend\n```\n\nThis will expand to:\n\n```ruby\nget '/about' =\u003e 'pages#about', :as =\u003e :about\n```\n\nThen just create a new view\n\n```\ntouch app/views/pages/about.html.erb\n```\n\nAnd create whatever content you want!\n\nIf you'd like to modify the routes that Pages generates, you can alter the\npage parameter by passing an options hash containing a block. This is\nparticularly useful for creating SEO-friendly routes:\n\n```ruby\npage :press_kit, :transform =\u003e lambda { |page| page.dasherize }\n```\n\nwould expand to:\n\n```ruby\nget '/press-kit' =\u003e 'pages#press_kit', :as =\u003e :press_kit\n```\n\n### Namespacing ###\n\nYou can easily namespace pages:\n\n```\nnamespace :work do\n  pages :client_1, :client_2\nend\n```\n\nThis will create a `Work::PagesController` dynamically if one does not\nalready exist. If you chose to create your own it should always inherit\nfrom `::PagesController`. Your views should be put into\n`app/views/work/pages/`\n\n### Path Helper Overrides ###\n\nYou can optionally override the path helpers by passing a hash to `:as`\n\n```\npages '404', '500', as: { '404' =\u003e 'not_found', '500', =\u003e 'server_error' }\n```\n\nYour views will be `app/views/pages/not_found.html` and\n`app/views/pages/server_error.html` and path helpers will be `not_found_path`\nand `server_error_path` but the urls will be `/400` and `/500`.\n\n## Authors ##\n\n[Brian Cardarella](http://twitter.com/bcardarella)\n\n[We are very thankful for the many contributors](https://github.com/dockyard/pages/graphs/contributors)\n\n## Versioning ##\n\nThis gem follows [Semantic Versioning](http://semver.org)\n\n## Want to help? ##\n\nStable branches are created based upon each minor version. Please make\npull requests to specific branches rather than master.\n\nPlease make sure you include tests!\n\nUnles Rails drops support for Ruby 1.8.7 we will continue to use the\nhash-rocket syntax. Please respect this.\n\nDon't use tabs to indent, two spaces are the standard.\n\n## Legal ##\n\n[DockYard](http://dockyard.com), LLC \u0026copy; 2012\n\n[@dockyard](http://twitter.com/dockyard)\n\n[Licensed under the MIT license](http://www.opensource.org/licenses/mit-license.php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDavyJonesLocker%2Fpages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDavyJonesLocker%2Fpages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDavyJonesLocker%2Fpages/lists"}