When I created a test bcms project with the following:
bcms new my_test -d mysql
The /app/views/layouts/templates/ folder and default.html.erb file are not created automatically, causing an error when trying to acces any pages using that template.
I had the same issue. As it turns out, the bcms new command crapped out @ generate cms:template - the error was:
/Users/me/.rvm/gems/ruby-1.9.3-p0@bcms/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `connect': Unknown database 'website_development' (Mysql2::Error)
I got past it by deleting the generated app, dropping & creating the development/test databases and re-running the bcms new command
Another workaround is to just run:
$ rake db:create
$ rails g cms:template default
The problem (I believe) is that rails generators are loading the rails environment, so unless the MySQL database exists, when the CMS generation script runs it fails. Not sure what the best option is, but it might be either:
A. Have the new project script run rake db:create first
B. Delay generation of the template until after rake db:install has been run.
I don't really like either of these solutions. A will have its own failure problems if users don't have the default 'root/blank' passwords set up for mysql and B is extra steps.