I\'m trying to run a query in a very quick and dirty way in Rails, without putting the rest of the model in place. I know this is bad practice but I just need a quick resul
If not for you saying that you tried and failed accessing [0] i'ld say you want to put
[0]
@item.shipping_price.first.price # I guess BSeven just forgot the .first. in his solution
into the view...strange