• Heroku 部署,报错. at 2012年10月18日

    我也遇到了类似的问题 能详细说明一下么 我怀疑我也是一个文件夹下有两个 repo 导致的 改怎么查 怎么解决呢 谢谢

  • #8 楼 @Rei 顺便问下 您 rails 开发了几年了 好强啊 该怎样才能到这种程度呢

  • #8 楼 @Rei 果然如此!!!!谢谢大侠了 居然是这样子 如果不问你 我根本没法解决的 太谢谢了

  • #4 楼 @leoRuby 是这个么

  • #3 楼 @Rei

    <!DOCTYPE html>
    <html>
    <head>
      <title>Depot</title>
      <link href="/assets/application.css?body=1" media="screen" rel="stylesheet" type="text/css" />
    <link href="/assets/carts.css?body=1" media="screen" rel="stylesheet" type="text/css" />
    <link href="/assets/depot.css?body=1" media="screen" rel="stylesheet" type="text/css" />
    <link href="/assets/line_items.css?body=1" media="screen" rel="stylesheet" type="text/css" />
    <link href="/assets/products.css?body=1" media="screen" rel="stylesheet" type="text/css" />
    <link href="/assets/scaffolds.css?body=1" media="screen" rel="stylesheet" type="text/css" />
    <link href="/assets/store.css?body=1" media="screen" rel="stylesheet" type="text/css" />
      <link href="/assets/depot.css?body=1" media="all" rel="stylesheet" type="text/css" />
      <script src="/assets/jquery.js?body=1" type="text/javascript"></script>
    
    <script src="/assets/jquery_ujs.js?body=1" type="text/javascript"></script>
    <script src="/assets/carts.js?body=1" type="text/javascript"></script>
    <script src="/assets/line_items.js?body=1" type="text/javascript"></script>
    <script src="/assets/products.js?body=1" type="text/javascript"></script>
    <script src="/assets/store.js?body=1" type="text/javascript"></script>
    <script src="/assets/application.js?body=1" type="text/javascript"></script>
      <meta content="authenticity_token" name="csrf-param" />
    <meta content="kLTxXnm5KnydwM3F3d61GrKUwBReflDfwP1wsRc6Bas=" name="csrf-token" />
    </head>
    <body id="store">
    
        <div id="banner">
            <img alt="Logo" src="/assets/logo.png" />
            Pragmatic Bookshelf
        </div>
        <div id="columns">
         <div id="side">
            <div id="cart">
               <div class="cart-title">Your Cart</div>
    
    <table>
        <tr>
        <td>1&times;</td>
        <td>CoffeeScript</td>
        <td class="item-price">$36.00</td>
    </tr>
    
        <tr class="total-line">
            <td colspan="2">Total</td>
    
            <td class="total-cell">$36.00</td>
        </tr>
    </table>
    
    <form action="/carts/25" class="button_to" method="post"><div><input name="_method" type="hidden" value="delete" /><input data-confirm="Are you sure?" type="submit" value="Empty cart" /><input name="authenticity_token" type="hidden" value="kLTxXnm5KnydwM3F3d61GrKUwBReflDfwP1wsRc6Bas=" /></div></form>
    
            </div>
            <a>Home</a><br />
            <a>Questions</a><br />
    
            <a>News</a><br />
            <a>Contacts</a><br />
         </div> 
        </div>
        <div id="main">
    
    
    <h2>Your pragmatic Catalog</h2>
    
    <div class="entry">
    
      <img alt="Cs" src="/assets/cs.jpg" />
      <h3>CoffeeScript</h3>
      <p>
            CoffeeScript is JavaScript done right. It provides all of JavaScript's
      functionality wrapped in a cleaner, more succinct syntax. In the first
      book on this exciting new language, CoffeeScript guru Trevor Burnham
      shows you how to hold onto all the power and flexibility of JavaScript
      while writing clearer, cleaner, and safer code.
          </p>
      <div  class="price_line">
        <span class="price">$36.00</span>
        <form action="/line_items?product_id=4" class="button_to" data-remote="true" method="post"><div><input type="submit" value="Add to Cart" /><input name="authenticity_token" type="hidden" value="kLTxXnm5KnydwM3F3d61GrKUwBReflDfwP1wsRc6Bas=" /></div></form>
    
        </div>
     </div>
    <div class="entry">
      <img alt="Ruby" src="/assets/ruby.jpg" />
      <h3>Programming Ruby 1.9</h3>
      <p>
            Ruby is the fastest growing and most exciting dynamic language
            out there. If you need to get working programs delivered fast,
            you should add Ruby to your toolbox.
          </p>
      <div  class="price_line">
    
        <span class="price">$49.95</span>
        <form action="/line_items?product_id=5" class="button_to" data-remote="true" method="post"><div><input type="submit" value="Add to Cart" /><input name="authenticity_token" type="hidden" value="kLTxXnm5KnydwM3F3d61GrKUwBReflDfwP1wsRc6Bas=" /></div></form>
        </div>
     </div>
    <div class="entry">
      <img alt="Rtp" src="/assets/rtp.jpg" />
      <h3>Rails Test Prescriptions</h3>
      <p>
    
            <em>Rails Test Prescriptions</em> is a comprehensive guide to testing
            Rails applications, covering Test-Driven Development from both a
            theoretical perspective (why to test) and from a practical perspective
            (how to test effectively). It covers the core Rails testing tools and
            procedures for Rails 2 and Rails 3, and introduces popular add-ons,
            including Cucumber, Shoulda, Machinist, Mocha, and Rcov.
          </p>
      <div  class="price_line">
        <span class="price">$34.95</span>
        <form action="/line_items?product_id=6" class="button_to" data-remote="true" method="post"><div><input type="submit" value="Add to Cart" /><input name="authenticity_token" type="hidden" value="kLTxXnm5KnydwM3F3d61GrKUwBReflDfwP1wsRc6Bas=" /></div></form>
        </div>
     </div>
    
        </div>
    </body>
    </html>
    
  • #1 楼 @Rei 大侠 我看过你给其他人的回复哎 真巧 我执行了 是正确的效果 但是我点击 Add to Cart 的话就没反应