Hello I am ruby newbie :) I am trying to look for an explanation to understanding the use of ':' in its syntax.
E.g:
test "should create product" do
assert_difference('Product.count') do
post :create, product: @update
end
end
When do we do :something
as opposed to something:
What is the difference. If this is googleable, please give me some pointers on the keywords to google about this topic. Variations of Ruby Colon so far yields a lot of irrelevant results.