What I understand so far is that :variable in ruby, is to say that this variable will not be able to change, which is similar to constant in other language. Am I correct??
Then my confusion is, sometimes I see the colon in front of variable, like this
Rails.application.config.session_store :cookie_store,
key: '_blog_session'
<%= link_to "Delete", article, confirm: "Are you sure?",
method: :delete %>
Both key: and method: has colon in front.What does that this represent?
Furthermore
Blog::Application.routes.draw.do
root :to => "articles#index"
end
There are double colons in between variables?
I am guessing that Blog: is one variable, and :Application is constant, which I doubt it is. Please enlighten me?