Frage

Am creating rails app with comfortable Mexican sofa and devise gem, in that devise path like

 http://localhost:3000/users/sign_up 

it is searching in cms_pages tables, how to solve this?

in my routes.rb file, i used

 ComfortableMexicanSofa::Routing.admin(:path => '/cms-admin')
 ComfortableMexicanSofa::Routing.content(:path => '/', :sitemap => false

thanks in advance.

War es hilfreich?

Lösung

Make sure that ComfortableMexicanSofa::Routing.content is defined last. It has a globbing route that clobbers everything defined after it.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top