Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Chandresh Pant's Profile

GitHub User: chandresh

Site: www.cmisoft.in

Comments by Chandresh Pant

Avatar

I solved this by adding bundle exec like:

bundle exec cap deploy:setup

Avatar

No its not. It seems you are confusing attr_accessible with attr_accessor.

Avatar

As suggested by Jean, changing null with 'form' makes things work!

mercury.html.erb

saveStyle: 'form', // 'form', or 'json' (default json)

Avatar

Just saw that someone above has posted the same problem. Trying that solution.

Avatar

With Rails 3.1.3 this does not seem to work. Mercury is escaping parameters. Here is a part of params hash:

Processing by PagesController#mercury_update as JSON
Parameters: {"content"=>"{\"page_name\":{\"type\":\"editable\",\"value\":\"about\",\"snippets\":{}},\"page_content\":{\"type\":\"editable\",\"value\":\"{\"page_name\":{\"type\":\"editable\",\"value\":\"about\",\"snippets\":{}},\"page_content

I googled and found a similar issue: https://github.com/jejacks0n/mercury/issues/85

Avatar

For people having problems installing it on Fedora (15/16 Live CD) and my own future reference:

note: the curl version somehow did not work on my Fedora 16 (it worked on Fedora 15 though)

  • which zsh => /bin/zsh

  • chsh -s /bin/zsh

or just chsh and choose the shell.

  • Logout / Restart

  • change .zshrc as mentioned by Ryan.

  • Copy rvm specific stuff from .bashrc to .zshrc

  • rvm --default use gemsetname (e.g 1.9.2@rails3)