跳到内容

Rails Theme

v1.1.1.0

paulrosen · 2011年11月29日 上架

This calls back to a Rails (or other) web service to get theme information, so that it is easy to keep the rails and WP sides in sync.

正在使用
10+
评分
暂无
累计下载
1.1 万
最近更新
2013年5月31日
需要 WordPress 3.2+已测试到 3.5.2

贡献者

截图

This is the options page.
This is the options page.

This calls back to a web service to get theme information, so that it is easy to keep the rails and WP sides in sync.

It is designed to be used when a Rails application wishes to contain WordPress content. This allows the WordPress pages
to directly use the styles of the Rails application so that it will always match, even when the Rails app changes.

It is also useful when the header of the page changes, for instance, if new menu items can appear depending on the state of the
application.

And finally, if you want to POST back to the Rails app (for instance, to log in), you need the CSRF to be set in the page’s header,
and that needs to come from the Rails session.

NOTE: This might take some tweaking depending on the theme you are using. It successfully works with the default 2011 theme
and the Hybrid theme.

It requires an entry point in your Rails controller that returns three things:
1. a section that is put in the header to load stylesheets and javascript,
1. a section that is loaded at the top of the body, and
1. a section that is loaded at the bottom of the body.

There is one main option in the plugin to tell it the base URL of the Rails app. The rails app is expected to respond to the
following URL:

/wrapper

This also supplies a convenience option to add classes to the so that you can match the body styles in your rails app.

Troubleshooting

  1. My theme doesn’t show up at all.

Turn on WP_DEBUG in wp_config.php and see if there is an error message printed to the page.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums