Displaying 2 results from an estimated 2 matches for "_line_item".
Did you mean:
line_item
2011 Aug 02
1
NoMethodError in Store#index
...ks in advance
I want to know how to solve No method errors
Agile Rails 4th ed
Great book
But second time I get this type of error
I would like to know how to troubleshoot and resolve
Please see below thanks once again
NoMethodError in Store#index
Showing C:/rails/shop9/app/views/line_items/_line_item.html.erb where
line #9 raised:
undefined method `title'' for nil:NilClass
Extracted source (around line #9):
6: <% end %>
8: <td><%= line_item.quantity %>×</td>
9: <td><%= line_item.product.title %></td>
10: <td class="it...
2006 Apr 07
1
error when rendering partial from an email template
Hi,
For an ecommerce application, I am trying to create an html email that
summarizes a customers order. (This is very similar to the Agile Rails
book page 417.) My templates are in two directories.
views/
order_mailer/
sent.rhtml
store/
_order_summary.rhtml
_line_item.rhtml
sent.rhtml needs to render the _order_summary.rhtml partial which
needs to render the _line_item.rhtml summary.
If I do the following in sent.rhtml I get an error that Rails can''t
find a partial named order_summary
render(:partial=>"store/order_summary")
I can make R...