I am interested in adding a blog to my Ruby on Rails app. I do not want to waste my time coding up a bloggin app in rails – I can do it but I just prefer something more robust.
I have investigated WordPress and it seems like one of the best bloggin platforms out there. My question is how would I get WordPress integrated into my site? I would preferably like to use my existing rails layouts and CSS. Is this type of thing even possible.
My site is http://www.arenpatel.com/ and as an end result I would like to have the same Rails generated sidebar (Twitter feed) on the blog.
Maybe there is a Rails alternative to WordPress?
Thanks for the help!
You can integrate a jekyll style blog with markdown files for blog posts very easily using the rails engine Postmarkdown.
Edit: Updated URL.
To integrate WP, install WordPress in a subdirectory, like /blog. So you’d have http://arenpatel.com/blog. Make the WP blog’s home page the index / front page of the WP installation. You would have to manually port your layout in some shape or fashion into the WP theme. I can’t think of a good way to share that, especially any dynamic code. You could share the same css using an @import statement in the WP theme’s style.css (a required file). WordPress works fine in this screnario.
I don’t think there is anything in the Ruby world that does everything WP does, but maybe that’s not necessary in your case???
Im not sure how well php and ruby play together under the same directory so the
easies way i see is to host a WordPress blog under a subdomain, for example, http://blog.arenpatel.com/.
You will of course have to write you own (or alter an existing) theme for wordpress in order to make it look the way your rails app does.
You can read all about it here: http://codex.wordpress.org/Theme_Development
As for your twitter feed; there are a bunch of plugins for wordpress do the same thing. All you will have to do is to style it via css.
Cheers!
You can just mount Blogo engine to you rails application: https://github.com/greyblake/blogo