comfortable-mexican-sofa

No route matches in rails 4 Comfortable Mexican Sofa

浪尽此生 提交于 2019-12-11 19:45:08
问题 I am using comfortable mexican sofa CMS. Added the gem to an existing application. Following the documentation from github, after it's installation I placed the route comfy_route :cms_admin, :path => '/cms' as first route and comfy_route :cms_admin, :path => '/cms' as last route. Here's the result shown when I do rake rotues i.e. I see all the routes generated by CMS: Prefix Verb URI Pattern Controller#Action admin_cms GET /great(.:format) admin/cms/base#jump form_blocks_admin_cms_site_page

Rails 4 custom 404 causes postgresql connection failure on Heroku

陌路散爱 提交于 2019-12-10 22:04:50
问题 I have a Rails 4 app deployed on Heroku in production with a custom domain. I also have a staging version. The app uses Comfortable Mexican Sofa. The following problem occurs: The app will reach a state where all requests return a 500 error. Logs show: [jesse@Athens expat]$ heroku logs ActiveRecord::ConnectionTimeoutError (could not obtain a database connection within 5.000 seconds (waited 5.000 seconds)): [jesse@Athens expat]$ heroku pg:info Connections: 5 [jesse@Athens expat]$ heroku pg:ps