Note that there are some explanatory texts on larger screens.

plurals
  1. POApplication error on deploy heroku
    primarykey
    data
    text
    <p>My app is works fine in localhost, but when i deploy to heroku and try create a new order i receive this error:</p> <pre><code>2013-03-20T21:26:02+00:00 app[web.1]: Started GET "/orders/new" for 189.44.29.3 at 2013-03-20 21:26:02 +0000 2013-03-20T21:26:02+00:00 app[web.1]: Processing by OrdersController#new as HTML 2013-03-20T21:26:02+00:00 app[web.1]: Rendered orders/new.html.erb within layouts/application (49.4ms) 2013-03-20T21:26:02+00:00 app[web.1]: Completed 500 Internal Server Error in 62ms 2013-03-20T21:26:02+00:00 app[web.1]: 2013-03-20T21:26:02+00:00 app[web.1]: ActionView::Template::Error (/app/app/views/orders/new.html.erb:31: unknown regexp options - tabl 2013-03-20T21:26:02+00:00 app[web.1]: /app/app/views/orders/new.html.erb:33: unterminated string meets end of file 2013-03-20T21:26:02+00:00 app[web.1]: /app/app/views/orders/new.html.erb:33: syntax error, unexpected $end, expecting keyword_end): 2013-03-20T21:26:02+00:00 app[web.1]: 28: &lt;td&gt;&lt;%= order.select :drop,options_for_select({"Nao",false,"Sim",true}) %&gt;&lt;/td&gt; 2013-03-20T21:26:02+00:00 app[web.1]: 29: &lt;/tr&gt; 2013-03-20T21:26:02+00:00 app[web.1]: 30: &lt;/tbody&gt; 2013-03-20T21:26:02+00:00 app[web.1]: 31: &lt;/table&gt; 2013-03-20T21:26:02+00:00 app[web.1]: 32: &lt;%= order.submit "Criar nova Compra !"%&gt; 2013-03-20T21:26:02+00:00 app[web.1]: 33: &lt;% end %&gt; 2013-03-20T21:26:02+00:00 app[web.1]: app/controllers/orders_controller.rb:16:in `new' </code></pre> <p>in my view have this code:</p> <pre><code>&lt;%= form_for @order do |order| %&gt; &lt;table&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Fornecedor&lt;/td&gt; &lt;td&gt;Produto&lt;/td&gt; &lt;td&gt;Quantidade&lt;/td&gt; &lt;td&gt;Nr Compra&lt;/td&gt; &lt;td&gt;Pagamento&lt;/td&gt; &lt;td&gt;Valor&lt;/td&gt; &lt;td&gt;Endereço&lt;/td&gt; &lt;td&gt;Dropship&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;%= order.select :seller,Place.all.map { |a| [a.place,a.place] }%&gt;&lt;/td&gt; &lt;td&gt;&lt;%= order.select :product_id,Product.all.map { |a| [a.name,a.id] } %&gt;&lt;/td&gt; &lt;td&gt;&lt;%= order.text_field :quantity,:size =&gt; 4 %&gt;&lt;/td&gt; &lt;td&gt;&lt;%= order.text_field :order_number,:size =&gt; 2%&gt;&lt;/td&gt; &lt;td&gt;&lt;%= order.select :payment,Place.all.map { |a| [a.place,a.place] }%&gt;&lt;/td&gt; &lt;td&gt;&lt;%= order.text_field :value,:size =&gt; 5 %&gt;&lt;/td&gt; &lt;td&gt;&lt;%= order.select :adress_id,Adress.all.map { |a| [a.name,a.id] }%&gt;&lt;/td&gt; &lt;td&gt;&lt;%= order.select :drop,options_for_select({"Nao",false,"Sim",true}) %&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;%= order.submit "Criar nova Compra !"%&gt; &lt;% end %&gt; </code></pre> <p>if someone can help me whit this i thanks, this erro happening when i try create a new order, thanks</p> <p>i try whit the options_for_select and whitout, all cases i get this error in heroku !</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload