{"id":20586072,"url":"https://github.com/charlotte-ruby/pages","last_synced_at":"2026-04-21T07:34:07.372Z","repository":{"id":1487358,"uuid":"1735075","full_name":"charlotte-ruby/pages","owner":"charlotte-ruby","description":"Alpha release - Provides you with HTML pages that you can edit using your app's web interface.","archived":false,"fork":false,"pushed_at":"2011-06-16T01:51:32.000Z","size":196,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T12:52:37.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/charlotte-ruby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-05-11T20:06:39.000Z","updated_at":"2016-09-13T10:03:09.000Z","dependencies_parsed_at":"2022-07-29T18:09:01.443Z","dependency_job_id":null,"html_url":"https://github.com/charlotte-ruby/pages","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/charlotte-ruby/pages","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlotte-ruby%2Fpages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlotte-ruby%2Fpages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlotte-ruby%2Fpages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlotte-ruby%2Fpages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charlotte-ruby","download_url":"https://codeload.github.com/charlotte-ruby/pages/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlotte-ruby%2Fpages/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32082424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-16T07:10:09.118Z","updated_at":"2026-04-21T07:34:07.357Z","avatar_url":"https://github.com/charlotte-ruby.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pages\n\npages is a Rails 3 plugin that lets you add HTML pages to your rails app with SEO friendly slugs (using friendly_id plugin).  The pages are editable within the app.  Useful for pages that are usually static, but may require some updates without you touching the code and restarting your server. For example, \"Contact Us\", \"About Us\", etc..\n\n## Install\n\nThis plugin has not been pushed to gemcutter yet, so you need to install directly from github.  Put this in your Gemfile\n\n    gem \"pages\", :git=\u003e\"git@github.com:charlotte-ruby/pages.git\" \n    \nInstall with Bundler\n\n    bundle install\n   \nRun the generator\n\n    rails g pages:install\n   \nThe generator performs the following actions:\n\n1. runs the generator for the friendly_id plugin.  This will create a migraiton for slugs\n2. creates a migration for the Page model\n3. copies the pages_controller.rb from the engine to your app.  You will probably want to add some security here\n\nRun the migrations\n\n    rake db:migrate\n    \n## Usage\n\nThe administration URL is (assuming you are on local):\n\n    http://localhost:3000/p\n    \nThis shows you a list of pages that have been created, with their friendly URLs, and gives you the option to add, edit or delete.  If you create or edit a page, you will be able to preview the page as you type if you have jquery installed in your app.\n\nA route helper is provided so you can call routes for pages using their title.  For instance, if you have a page with the title \"About Us\", you would do the following:\n\n    page_url_for(\"About Us\")\n    \nThis helper is available in the controller and view.\n\n## Customizing\n\nIf you want to change the model, just drop in a copy of this model into your app/models directory: https://github.com/charlotte-ruby/pages/tree/master/app/models/page.rb\n\nIf you want to override the views, just place any of these files in app/views/pages: https://github.com/charlotte-ruby/pages/tree/master/app/views/pages\n\n## A note about security\n\nThis plugin provides no mechanism for role based security.  Out of the box, any user can visit \"http://yoursite.com/p\" and edit the pages.  If you want to restrict users from editing pages, you will need to add your own security mechanism.\n\n## Contributing to pages\n \n* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet\n* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it\n* Fork the project\n* Start a feature/bugfix branch\n* Commit and push until you are happy with your contribution\n* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.\n* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.\n\n## Copyright\n\nCopyright (c) 2011 John McAliley. See LICENSE.txt for\nfurther details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlotte-ruby%2Fpages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharlotte-ruby%2Fpages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlotte-ruby%2Fpages/lists"}