RafeHatfield / Mercury-Demo-from-Railscast

Implementation of the Mercury editor from railscast 296
1 stars 0 forks source link

recursion error #1

Open aamax opened 12 years ago

aamax commented 12 years ago

HI,

I have been trying to use the mercury gem in a project and was having trouble so i cloned this project and ran it without any modifications. I get an error stating:

Mercury.PageEditor failed to load: InternalError: too much recursion

Please try refreshing.

not sure what i'm missing. any ideas? I'm pretty new to ROR so it's probably something dumb on my part but i haven't altered the gemfile or anything else.

I'm using ruby 1.9.2-290

RafeHatfield commented 12 years ago

Hi There,

What version of Rails are you running? I think that might be the root of your problem. You can see this app running on heroku here - http://mercury-example.herokuapp.com/pages/1

Also, I took this demo directly from railscasts episode 296 - http://railscasts.com/episodes/296-mercury-editor - i recommend watching it, that will show you a lot of how it works. If you haven't spent a lot of time on railscasts yet, I recommend getting to know it, one of the best rails resource out there.

Regards, Rafe

aamax commented 12 years ago

we tried it with rails 3.1.1 and 3.1.3. for now we're going to use tinymce which seems to be working. thx neway.

btw - I started with the railscast originally. implemented the project step by step with Ryan's presentation. no luck :)

RafeHatfield commented 12 years ago

Hmm interesting - I have it working in 3.1.1; I did a little looking around and found some interesting notes about some javascript issues in firefox causing the kind of error message you mention - unfortunately I couldn't reproduce, it seems to be running ok for me in Firefox (v 11, osx), but this may have caused some of your problems?

After getting it working, we decided internally it was a little flaky to put it into a production system yet, and tinyMCE is my favourite flavour of smart editor so I think you made the right choice. Its been on my list to revisit for a while though, I'll spend some more time on it one day soon and update the project with my findings.