ruby - Spree: Display brand name for product? -


I am looking for archived documents and doing a lot of research but I have not got any work.

The most relevant link I found was this ...

I tried different bits code there but none of this worked, just me Like errors,

Spree :: Home # index in NoMethodError

I just want to display the brand name of a specific product, something like that ...

"Product.brand"

Some of the appeals to help me with this, there should be some simple solution for this, I just want to show the Dang brand name.

/ views / spree / products /

You can only name Brand You can create a property and then put your value to / views / spree / products / show.html.erb like this:

   <% = @ product .property ('brand')%>  

Comments