jejacks0n / mercury

Mercury Editor: The Rails WYSIWYG editor that allows embedding full page editing capabilities directly inline.
http://jejacks0n.github.com/mercury
Other
2.63k stars 530 forks source link

No route matches [GET] with Rails 4.0 #404

Closed mehayden closed 11 years ago

mehayden commented 11 years ago

Cannot get the "/editor/..." routes to work using Rails 4.0 and latest Mercury version. The routes.rb only has 2 lines in the draw block:

resources :web_forms
mount Mercury::Engine, at: "/"

In this order, the /web_forms routes work, but the "/editor/web_forms" do not. If I reverse the order, then none of the routes work. Also, all the routes seem to be present when running "rake routes", but not when the app runs. I also tried a version with a call to Mercury::Engine.routes after the mount, which the install originally created, but this acts the same.

mehayden commented 11 years ago

I tried out Mercury on Rails 3.2.6 and saw similar behavior, until I restarted the unicorn server. So I'm assuming this is the same issue here and closing this.