Lev Cheryomukhin
Lev Cheryomukhin
a hack: ``` haml :javascript if(!$(window).data("connected")){ #{subscribe_to("/chat/#{@chat.id}").gsub('', '').gsub('','')} $(window).data("connected", true) } ```
rolling back to 2.4.1 fixed this, but as far as i remember, there were some index migrations on v3.0 that may impact performance.
i tried it in https://gist.github.com/nir0/8592186 i don't know where to set parse: true seems like you can reproduce this bug: tag something with "СК РФ" tag another object with same...
alright, i wrote a test: ``` ruby # coding: utf-8 require 'spec_helper' describe "Unicode" do before(:each) do clean_database! end it "saves english tags good" do @johny = TaggableModel.new(name: 'Johny', tag_list:...
managed to fix by replacing ``` ./lib/acts_as_taggable_on/tag.rb:29: where(["lower(name) = ?", name.downcase]) ./lib/acts_as_taggable_on/tag.rb:41: lowercase_ascii_tag = as_8bit_ascii(tag).downcase ./lib/acts_as_taggable_on/tag.rb:106: as_8bit_ascii(str).downcase ``` with ``` ./lib/acts_as_taggable_on/tag.rb:29: where(["lower(name) = ?", name.mb_chars.downcase]) ./lib/acts_as_taggable_on/tag.rb:41: lowercase_ascii_tag = as_8bit_ascii(tag).mb_chars.downcase ./lib/acts_as_taggable_on/tag.rb:106:...
hmm now it breaks under sqlite... seems like sqlite behaves encodings wrong
@DaniG2k please supply gem and database version
@DaniG2k this issue was related to lower() database function and/or ruby #downcase function, but should be fixed already. for example, in pg: ``` # select lower('Kenzaburo Ōe'); lower -------------- kenzaburo...
@DaniG2k i think it's my fault since i got not enough time or was too lazy to push tests i wrote for this issue. so, feel free to use example...
hello guys, just wanted to post a workaround: app/admin/clients_admin.rb: ```ruby Trestle.resource(:clients) do controller do def export # ... end end routes do get :export, on: :collection end end ``` app/views/admin/clients/index.html.haml:...