I am learning ruby on rails
but do not understand why some variables have two front points, please explain to me, for example a piece of code either:
class ApplicationController < ActionController::Base
session :session_key => "ruby_cookies"
end
I do not understand, why :session_key => "ruby_cookies" begins with two points,
and also seems a hash with that arrow =>
I learned the basics of Ruby, and there was none of this, just know that the have class variables @,:,
another example:
<% @ Posts.each do | post |%>
<% = link_to 'Destroy', post, :confirm => 'Are you sure?'
: method => :delete%> </ td>
</ tr>
other[:variable]
<% End%>
why :confirm => 'Are you sure', and other[:variable] begins with two points?,
thanks