functions that return booleans( true or false), can end with a question mark
( ? )

and in ruby what is called a hash is a list of key value pairs, that is

:name => "abder", :id=> '3'

that is a hash, if i want the value of name , call it like this

:name

that returns "abder", and hashes can be nested, like this

:params=> { :name => "abder", :id=> '3'}

if i cal params directly i get ,

:name => "abder", :id=> '3'

but if i want a value that is nested i do


params[:name]

and it returns

"abder"

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to