Displaying 1 result from an estimated 1 matches for "usercart".
Did you mean:
ubercart
2008 Mar 12
3
undefined method `each' for #<Usrecart:0x46d1678>
I have the an error such as undefined method ''each''
pls can any one find the error from the code given below
<center><%=@b%></center>
<center><h2>WELCOME IN YOUR PROFILE</h2>
<%@usercart=Usrecart.find_by_user_id(@b)%>
<%if @usercart.blank?%>
<br>
<br>
<br>
<br>
<h2>THERE IS NO PRODUCT</h2>
<%end%>
<%if !@usercart.blank?%>
<% for u in @usercart %>
<% for column in u.content_columns %>...