TrueSoft / railspress

Display WordPress posts in a Ruby on Rails application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Railspress

Shows WordPress posts in a Ruby on Rails application.

Ever wanted to have a CMS using Ruby on Rails? With Railspress you can have of all advantages of WordPress editing pages and posts, but you can display them in a Rails layout.

Features

  • Displays the pages, posts and menus from a WordPress site using the rails layouts
  • Works for multi-language sites also
  • Configure additional options using the same WordPress table
  • 4 custom shortcodes:
    • ts_revisions - shows the page revisions for website visitors
    • ts_childpages - displays links of the child pages into the parent page
    • ts_customposts - displays links of the custom post types into a page
    • ts_fileexplorer - displays a directory with its files and direct subdirectories
  • set a prefix for all articles e.g. config.posts_permalink_prefix = 'news'

Usage

How to use the engine

Installation

Add this line to your application's Gemfile:

gem 'railspress'

And then execute:

$ bundle

Or install it yourself as:

$ gem install railspress

In database.yml add an entry with the table prefix used in WordPress:

  prefix: wp

Add an initializer

Dependencies

gem 'shortcode'
gem 'will_paginate', '~> 3.1.1'

Contributing

Contribution directions go here.

Sponsors

Support this project:

PayPal

License

The gem is available as open source under the terms of the MIT License.

About

Display WordPress posts in a Ruby on Rails application

License:MIT License


Languages

Language:Ruby 94.2%Language:HTML 4.9%Language:JavaScript 0.4%Language:SCSS 0.3%Language:CSS 0.2%