[ruby-it] problema con redbox

jamba jamba faletra a gmail.com
Mer 3 Giu 2009 17:04:48 CEST


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?
-- 
Posted via http://www.ruby-forum.com/.


More information about the Ml mailing list