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 parameters to the render method ?!
>
>
> 2014-03-07 14:54 GMT-03:00 Jedrin <jrub...@gmail.com <javascript:>>:
>
>>
>>  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 stop receiving emails from it, send an 
>> email to rubyonrails-ta...@googlegroups.com <javascript:>.
>> To post to this group, send email to 
>> rubyonra...@googlegroups.com<javascript:>
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/rubyonrails-talk/7b84d5c6-e796-45dd-aaf2-0810f6655390%40googlegroups.com<https://groups.google.com/d/msgid/rubyonrails-talk/7b84d5c6-e796-45dd-aaf2-0810f6655390%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Att, Antônio Augusto de Sousa Britto - 43ª turma de Ciência da Computação 
> - UFU
>  

-- 
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 rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/03f126c8-fbf9-4363-b79f-7410f9bacd93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to