[Rails] Re: Conection

2009-08-24 Thread Soller Prieto
oohh thank you!! I solved!!! -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to

[Rails] Conection

2009-08-22 Thread Soller Prieto
I have this in my view List: plabel Delete all user have more than (month): /label %= text_field_tag(month, p, :size = 10 ) % %= link_to 'Delete', :confirm = 'Are you sure?',:month = p,:action = destroyMonth%/p and in the controller i have the method destroyMonth def destroyMonth (month)

[Rails] Problem with array

2009-08-21 Thread Soller Prieto
I have two action in the same controller: def list if logged_in? sort = case params['sort'] when title then title when a then a when b then b when c then c when title_reverse then title DESC when a_reverse then a DESC

[Rails] will_paginate with ajax

2009-08-19 Thread Soller Prieto
I tried to delete from a datatable that I represent with will_paginate and ajax. In the view there are something like that: tbody % @items.each do |i| % tr class=%= cycle(even,odd) % td%= i.name %/td td%= i.quantity %/td td%= i.price %/td td%= link_to 'Destroy',

[Rails] Will_paginate

2009-08-18 Thread Soller Prieto
Hi, I don't speak English very well, and I have a problem, with the gem mislav-will-paginate I install perfect, the las version 2.3.11 and I did the example http://dev.nozav.org/rails_ajax_table.html and I copy all!! My problem is this: NoMethodError in ItemController#list undefined method