title: Can I use Mercury Editor without an specific Pages Controller?
body: <p>I want to use Mercury Editor (https://github.com/jejacks0n/mercury) to edit posts in the blog area of my RoR application. I don't have any Pages model, I just want to edit posts and not all the site's pages.</p>
  
  <p>In my routes.rb:</p>
  
  <pre><code>resources :posts do
      member { post :mercury_update }
  end
  </code></pre>
  
  <p>In my posts_controller.rb:</p>
  
  <pre><code>def mercury_update
      post = Post.find(params[:id])
      post.name = params[:content][:page_name][:value]
      post.content = params[:content][:page_content][:value]
      post.save!
      render text: ""
  end
  </code></pre>
  
  <p>And also did:</p>
  
  <pre><code>$(window).bind('mercury:ready', function() {
    var link = $('#mercury_iframe').contents().find('#edit_link');
    Mercury.saveURL = link.data('save-url');
    link.hide();
  });
  
  $(window).bind('mercury:saved', function() {
    window.location = window.location.href.replace(/\/editor\//i, '/');
  });
  </code></pre>
  
  <p>And changed save style to 'form' in mercury.html.erb.</p>
  
  <p>Even following those steps, I'm getting this error over and over when I try to save changes in a test post:</p>
  
  <blockquote>
    <p>Mercury was unable to save to the url: <a href="http://localhost:3000/blog/test" rel="nofollow">http://localhost:3000/blog/test</a></p>
  </blockquote>