@postis is an string.

Now i see where i the problem. I fix them like so:
def posti_multiple
    @postis = Posti.find(params[:posti_ids])
     a=Posti.find_by(numero: params[:posti_ids])
       a.update_column(:stato, "checked")

end

When i have  for example posti_ids[" any number"], one seat disappear on 
the view. When i have posti_ids["any number", "any number", ... ], one 
seat also desappear but i don't want that. All of seat wich are choice 
must be disappear. I think i can do some loop??

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/9083efc9d4f9c985573e63e444bebaae%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to