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?


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

Responder a