I\'d like \"to mount\" a Nesta CMS app onto a Rails3 app This should be possible couse of being Nesta a Sinatra app, which should be a Rack mountable layer, ... but how woul
Here's the code I used to make it work on my app:
MyRailsApp::Application.routes.draw do
mount MyNestaSite.new => "/blog"
match '/' => "static#welcome" # and whatever other rails routes you want
end
At the time it also required the latest version of Sinatra from github as the version available via rubygems had a bug in how it handled environment variables, so I added this to my Gemfile:
gem "sinatra", :git => "http://github.com/sinatra/sinatra.git"