Hi. I'm trying to embed Nesta in a rails 3 application but I'm encountering some difficulties. I've already followed StackOverflow (http://stackoverflow.com/questions/3867491/is-it-possble-include-nesta-cms-into-rails3-application/3873682) discussion and watched the rails cast episode but, as I'm new both in Rails and Nesta I didn't get there. The nearest I got was mapping the following in my rails config.ru map "/blog" do run Nesta::App end and copying config.yml into my rails config folder. But that way, the css styles did not work, besides not seem to be the best way for using Nesta inside Rails. What I did't get from the Graham answer at StackOverflow is the relation between refer Nesta::App at my routes and Rails Metal. Another resource I found about the topic is here: http://thechangelog.com/post/3363006288/nesta-heroku-friendly-sinatra-based-cms-now-a-ruby-gem-g, but did't understood what MyHawtBlawg really is. Thank you, Rafael.
On 12 Apr 2011, at 03:21, Rafael Carvalho <firstname.lastname@example.org> wrote: > What I did't get from the Graham answer at StackOverflow is the relation between refer Nesta::App at my routes and Rails Metal. My answer was for rails 2, which I'm fairly sure it says on that page. Ignore it. Glenn chipped in with a rails 3 version. The argument to mount looks to me like it should be a rack app, so rather than MyNestaSite.new, try Nesta::App.new. Yes, I still haven't had to do this myself yet, so I am guessing. I know a few people have though, so post again if you're stuck and maybe somebody will be able to help you out. Graham