Displaying 1 result from an estimated 1 matches for "get_addons".
2006 Aug 15
1
serialisation
...@contract.addons = Array.new
end
def update
@contract = Contract.find(params[:id])
@contract.user_id = session[:user_id]
@contract.customer_id = params[:customer_id]
@contract.addons = Addon.find(:all, :conditions =>["user_id = ? && id
in (?) ",session[:user_id], Contract.get_addons(params[:addons])])
end
after create and update of a contract i have an serialized(YAML) array
of addons in my contract mysql-table.
the problem in view:
<% @contract.addons.each do |addon| %>
<%= addon.name %>
<% end %>
is just working under windows and not on linux!
errorme...