nestacms

Nesta CMS and Rails3 integration: adding blog to an exiting rails 3 application

元气小坏坏 提交于 2019-12-30 15:00:15
问题 I'm adding nesta (0.9.8) cms, to an existing Rails 3.0.10 application. I get the blog up and running but not the layout/stylesheets. What i did until now is : 1. inside rails app main root, add gem 'nesta', gem 'sass' and run 'bundle' 2. run "nesta new nesta-blog" 3. edit config.ru like following : require ::File.expand_path('../config/environment', __FILE__) map "/" do run MyRails3App::Application end require 'nesta/env' require 'nesta/app' Nesta::App.root = ::File.expand_path('./nesta-blog'

Nesta CMS and Rails3 integration: adding blog to an exiting rails 3 application

纵然是瞬间 提交于 2019-12-01 14:43:43
I'm adding nesta (0.9.8) cms, to an existing Rails 3.0.10 application. I get the blog up and running but not the layout/stylesheets. What i did until now is : 1. inside rails app main root, add gem 'nesta', gem 'sass' and run 'bundle' 2. run "nesta new nesta-blog" 3. edit config.ru like following : require ::File.expand_path('../config/environment', __FILE__) map "/" do run MyRails3App::Application end require 'nesta/env' require 'nesta/app' Nesta::App.root = ::File.expand_path('./nesta-blog', ::File.dirname(__FILE__)) map "/blog" do run Nesta::App end 4. edit config/routes.rb like following :