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

Not working for Rails 4 #417

Closed bramu closed 11 years ago

bramu commented 11 years ago

Hi,

I am trying to use it for the rails 4 application, but it is not able to pick the routes for /editor' Please tell me is there anything that I need to. I did the googling and no relavant results for the same. I looked at the commit regarding the routes and I forked same branch and even master has that change but its still not working. Please suggest me the solution for the same.

Thanks!

jejacks0n commented 11 years ago

Always always try master before creating an issue. Thanks!

bramu commented 11 years ago

Hi thanks for the reply but actually it is not working.

I tried with both master branch and the SHA of last commit as well, still it is throwing me the same Routing error. I checked the gem code and the routes are correct. Can you please suggest me the way to debug this issue?

jejacks0n commented 11 years ago

Well, my initial reaction is to assume that it is working for others, so did you follow the installation instructions? Other than that, I can't help without an exception.

bramu commented 11 years ago

Many thanks for the quick reply and below is my Gemfile entry and with this it is throwing me the routing error when I try to access /editor/(*url). I am able to see the routes in the rake routes command.

gem 'mercury-rails', git: 'https://github.com/jejacks0n/mercury.git', ref: '9b722b1706'

Is there anything I am missing here in the installation instructions? Please help me.

jejacks0n commented 11 years ago

please provide the full engine routes from rake routes. My guess is that you provided a root path when mounting the engine.