Forum: Italian Ruby user group problema con redbox

Posted by jamba jamba (jamba)
on 2009-06-03 17:04
salve sto utilizzando il plugin redbox, ma ho un problema.

<h3 class="flash"><%= flash[:notice] %></h3>
<%= link_to_remote_redbox("Inserisci un nuovo cliente", :url => {:action
=> 'new', :id=>@id, :loading => visual_effect(:highlight)})%>


<table class="list">
  <thead>
    <tr>
        <th class="number">Numero</th>
      <th class="customer">Cognome e Nome</th>
            <th class="invoices">Azioni</th>
      <th class="invoices">Fatture</th>
      <th class="invoices">Pratiche</th>
    </tr>
  </thead>
  <tbody>
    <% @customers.each do |customer| %>
    <tr class="<%= cycle('even', 'odd') %>">
      <td><%= customer.id %></td>
      <td><%= link_to customer.name, edit_customer_path(customer)
%></td>
      <td class="center"><%=link_to_remote_redbox
(image_tag('edit.png'),
                      :url=>{:action => 'edit', :id=>customer.id
                      })%>&nbsp;&nbsp;
                      <%=link_to_remote_redbox (image_tag('x.gif'),
                      :url=>{:action => 'destroy',
                      :id=>customer.id})%></td>
      <td class="center"><%=customer.invoices.count %></td>
      <td class="center"><%=customer.documents.count%></td>
    </tr>
    <% end %>
  </tbody>
</table>

questa view funziona quasi perfettamente, infatti il primo
link_to_remote_redbox funziona bene, mentre quelli per l'edit ed il
destroy, ricevo un messaggio di metodi assenti. nel controller ho tutti
i metodi previsti. (edit destroy updtae ecc...)
dove sta l'errore?
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.