ruby on rails - Application error on deploy heroku -
My app works fine in the localhost, but when I deploy it on its lock and attempt to create a new order I get this error: / p>
2013-03-20T21: 26: 02 + 00: 00 app [web.1]: 18/9/04/09 for "order / new" received 2013-03-20 at 21:26: 02 +0000 2013-03-20T21: 26: 02 + 00: 00Ap [Web.1]: New as Processing HTML by Order Controller # 2013-03-20T21: 26: 02 + 00: 00P [Web.1]: Landout / App (49.4m) 2013-03-20T21: 26: 02 + 00: 00Ap [Web 1] Order / New HTML provided under ARB: Complete 500 internal server error in 2013 in 62 MS 2013-03-20T21: 26: 02 + 00: 00Ap [Web.1]: 2013-03-20T21: 26: 02 + 00: 00Ap [Web 1] : Action View :: Template :: Error (/ app / app / idea / order /new.html.erb31: unknown regexp option - Tabl 2013-03-20T21: 26: 02 + 00: 00 ap [Web.1 ]: /app/app/apps/orders/new.html.erb:33: Unusual String File 2013-03-20T21: 26: 02 + 00: 00Ap [Web 1]: / app / app / views / orders / New.html .rb 33: syntax error, unexpected end, expectation of keyword_and): 2013-03-20T21: 26: 02 + 00: 00 app [web.1]: 28: & lt; Td> & Lt;% = order.select: drop, options_for_select ({"neo", false, "sim", true})%> & Lt; / Td> 2013-03-20T21: 26: 02 + 00: 00P [Web.1]: 29: & lt; / Tr & gt; 2013-03-20T21: 26: 02 + 00: 00app [Web 1]: 30: & lt; / Tbody & gt; 2013-03-20T21: 26: 02 + 00: 00P [Web.1]: 31: & lt; / Table & gt; 2013-03-20T21: 26: 02 + 00: 00Ap [Web.1]: 32: & lt;% = order.Submit "Kiera Nova Compra!"% & Gt; 2013-03-20T21: 26: 02 + 00: 00P [Web.1]: 33: & lt;% end% & gt; 2013-03-20T21: 26: 02 + 00: 00Ap [Web.1]: App / Controller / Command_Controller RB: 16: `new 'in In my opinion, this is code:
form do 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> NR Kampra & lt; / Td> & Lt; TD & gt; Pagamento & lt; / TD & gt; & Lt; TD & gt; Heroism & 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> & Lt;% = order.select: Seller, Place. All.map {| A | [A.place, a.place]}%> & Lt; / Td> & Lt; Td> & Lt;% = order.select: product_id, product.aspart.map {| A. [A.name, a.id]}%> & Lt; / Td> & Lt; Td> & Lt;% = order.text_field: Quantity: Size = & gt; 4% & gt; & Lt; / Td> & Lt; Td> & Lt;% = order.text_field: order_number ,: size = & gt; 2% & gt; & Lt; / TD & gt; & Lt; Td> & Lt;% = order.select: payment, place. All.map {| A | [A.place, a.place]}%> & Lt; / Td> & Lt; Td> & Lt;% = order.text_field: value ,: size = & gt; 5%> & lt; / Td> & Lt; Td> & Lt;% = command Selection: adress_id, Adress.all.map {| A | [A.name, a.id]}%> & Lt; / Td> & Lt; Td> & Lt;% = order.select: drop, options_for_select ({"neo", false, "sim", true})%> & Lt; / Td> & Lt; / TR & gt; & Lt; / Tbody & gt; & Lt; / Table & gt; & Lt;% = order.Submit "Kiera Nova Compa!"% & Gt; & Lt;% end% & gt; If someone can help me, then I thank it, when I try to create a new order, then this error happens
I I try the commands for options - selection and white, all the cases I get the error!
You have syntax error in your view. My best estimate is that for your case, Is that the following line
& lt; Td> & Lt;% = order.select: drop, options_for_select ({"neo", wrong, "sim", true})%> & Lt; / Td> & Lt; / TR & gt; can be rewritten in this form:
& lt; Td> & Lt;% = order.select: drop, options_for_select ({"nao" => false, "sim" => gt; true}}%> & lt; / tr expression {"boat", wrong, "sim", true} default means no sense in Ruby syntax Change this to {"Nao" => False, "SIM" => <">" ["Boat", false, "SIM", true]
According to the docs, the rail method will accept a hash or an array (or any countable type). < / Html>
Comments
Post a Comment