The syntax of partial here does not make sense to me. If it was :partial then
it's a symbol, but
what is it this way ?
%= render partial: account %
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To unsubscribe from this group and
its a hash of parameters to the render method ?!
2014-03-07 14:54 GMT-03:00 Jedrin jrubia...@gmail.com:
The syntax of partial here does not make sense to me. If it was :partial
then it's a symbol, but
what is it this way ?
%= render partial: account %
--
You received this message
this isn't valid syntax because of the colon at the end of 'something'
my_var = something:
this is not valid
key: 'car'
If there is some shorthand or special case I do not understand
On Friday, March 7, 2014 1:07:47 PM UTC-5, Antônio Augusto Sousa Britto
wrote:
its a hash of
so this is valid syntax then, I never realized that
{mykey: 'xx''}
= {:mykey=xx}
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
I guess it is the new hash notation. Not sure which version of Ruby
implements it ( 2.0 ?)
2014-03-07 15:32 GMT-03:00 Jedrin jrubia...@gmail.com:
so this is valid syntax then, I never realized that
{mykey: 'xx''}
= {:mykey=xx}
--
You received this message because you are subscribed to
On Friday, March 7, 2014 1:27:41 PM UTC-5, Jedrin wrote:
this isn't valid syntax because of the colon at the end of 'something'
my_var = something:
this is not valid
key: 'car'
If there is some shorthand or special case I do not understand
On Friday, March 7, 2014 1:07:47 PM
6 matches
Mail list logo