Proba el q adjunte !

2011/5/21 Paolo Loran <[email protected]>

> Adjunto el en.yml
>
>
>
> 2011/5/21 Maximiliano Gonzalez <[email protected]>
>
>> Claramente el error esta lo q le llega al metodo t() porq salta
>> ArgumentError ahi,
>> Tenes algo claramente en el yml, algo de la indentacion, es buena practica
>> dejar dos espacios de identacion.
>>
>> Saludos
>>
>> 2011/5/21 Paolo Loran <[email protected]>
>>
>>> Probe ambas cosas que me dijeron, 1º quite los tabs y los reemplace por
>>> espacios, y 2º probe con t('assistence.index.student'), pero el error
>>> persiste:
>>>
>>>
>>> -----------------------------------------------------------------------------------
>>> <table>
>>>   <tr>
>>>     <th><%= t('assistence.index.student') %></th>
>>>     <th>Attended</th>
>>>   </tr>
>>> _________________________________________________________
>>>
>>> #en.yml
>>> en:
>>>
>>>   assistence:
>>>    index:
>>>     student: "Student"
>>> _________________________________________________________
>>> Error:
>>>
>>> ArgumentError in Assistence#index
>>>
>>> Showing 
>>> */home/angeluz/project/tkd/app/views/assistence/index.html.erb*where line
>>> *#9* raised:
>>>
>>> syntax error on line 7, col 11: `  students:'
>>>
>>> Extracted source (around line *#9*):
>>>
>>> 6:
>>> 7: <table>
>>> 8:   <tr>
>>> 9:     <th><%= t('assistence.index.student') %></th>
>>> 10:     <th>Attended</th>
>>> 11:   </tr>
>>> 12:
>>>
>>> _____________________________________________________________
>>> poli
>>>
>>>
>>> 2011/5/21 Lucas Florio <[email protected]>
>>>
>>>>
>>>>
>>>> On Sat, May 21, 2011 at 1:07 PM, Paolo Loran <[email protected]>wrote:
>>>>
>>>>> Buenos dias a todos.
>>>>> Tengo el siguiente problema tengo un controlador que no posee modelo
>>>>> pero si una vista "index", la cual posee terminos para traducir, pero el
>>>>> drama es que no me los traduce.
>>>>>
>>>>>
>>>>> ----------------------------------------------------------------------------------------------------------------
>>>>> #en.yml
>>>>> en:
>>>>>
>>>>>     assistence:
>>>>>         index:
>>>>>             student: "Student"
>>>>>
>>>>>
>>>>> ___________________________________________________________________________
>>>>> #index.html.erb
>>>>> <div id="student_list">
>>>>> <% if notice %>
>>>>>     <p id="notice" ><%= notice %></p>
>>>>> <% end %>
>>>>> <h1>Assistence</h1>
>>>>>
>>>>> <table>
>>>>>   <tr>
>>>>>     <th><%= t('.student') %></th>
>>>>>     <th>Attended</th>
>>>>>   </tr>
>>>>>
>>>>> y en el browser el error es el siguiente:
>>>>> ArgumentError in Assistence#index
>>>>>
>>>>> Showing */home/angeluz/project/tkd/app/views/assistence/index.html.erb
>>>>> * where line *#9* raised:
>>>>>
>>>>> syntax error on line 3, col 12: ` assistence:'
>>>>>
>>>>> Extracted source (around line *#9*):
>>>>>
>>>>> 6:
>>>>> 7: <table>
>>>>> 8:   <tr>
>>>>> 9:     <th><%= t('.student') %></th>
>>>>> 10:     <th>Attended</th>
>>>>> 11:   </tr>
>>>>> 12:
>>>>>
>>>>>
>>>>> __________________________________________________________________________
>>>>>
>>>>> que podra ser?
>>>>>
>>>>>
>>>> Fijate si el archivo yml no tiene tabs. Es habitual que eso suceda.
>>>> Cambiá los tabs por espacios. La indentación de un archivo YAML se realiza
>>>> con espacios.
>>>>
>>>> saludos.
>>>>> poli
>>>>>
>>>>> _______________________________________________
>>>>> Ruby mailing list
>>>>> [email protected]
>>>>>
>>>>> http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar
>>>>>
>>>>>
>>>> Saludos
>>>>
>>>> --
>>>> Lucas
>>>> http://www.lucasefe.com.ar/
>>>> "When life is hard, you have to change. " S. Hoon
>>>>
>>>> _______________________________________________
>>>> Ruby mailing list
>>>> [email protected]
>>>> http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Ruby mailing list
>>> [email protected]
>>> http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar
>>>
>>>
>>
>> _______________________________________________
>> Ruby mailing list
>> [email protected]
>> http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar
>>
>>
>
> _______________________________________________
> Ruby mailing list
> [email protected]
> http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar
>
>

Attachment: en.yml
Description: Binary data

_______________________________________________
Ruby mailing list
[email protected]
http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar

Responder a