search for: olnamebox

Displaying 2 results from an estimated 2 matches for "olnamebox".

2005 Dec 18
3
undefined local variable in partial
...llowing error: ActionView::TemplateError (undefined local variable or method `order_line'' for #<#<Class:0xb75b2090>:0xb75b1f28>) on line #13 of app/views/admin/_order_line.rhtml: 10: 11: <tr valign="top"> 12: <td> 13: <div class="olnamebox"><%= h(order_line.name) %></div> 14: <div class="oladdress"><%= h(order_line.address) %> </div> 15: </td> The partial is called from within a view (ship.rhtml): <%= render(:partial => "order_line", :collection...
2005 Dec 23
5
Can''t get data from products into @order
...ng to ''enhance'' the code with some extra options. When I go to admin/shipping I want to include some data from the products table in with the order info listed. I can''t seem to get this to work. in my partial form I''m trying to add this: <td class="olnamebox"> <%= order_line.image_url %> </td> I''m recieving this error undefined method `image_url'' for #<Order:0xb77ee194> I call the partial with: <table cellpadding="5" cellspacing="0"> <%= render(:partial => "order_line&...