[Rails] Re: mysql encoding with rails 2.3.2 and ruby 1.9.1

2009-04-11 Thread ruby.freeman
> Postgresql v6.3.8.1 works with Ruby 1.9.1p0 and Rails 2.3.2 - my guess > is the problem is with either the driver or the database itself. Problem is not with database. As I said above, when I do something like User.first.name.encoding I'm getting #. If I do this one - User.first.name.force_enco

[Rails] Re: mysql encoding with rails 2.3.2 and ruby 1.9.1

2009-04-06 Thread ruby.freeman
> Which requests do you perform in the rails console? any find request, like in first message --~--~-~--~~~---~--~~ 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 rubyonra

[Rails] Re: mysql encoding with rails 2.3.2 and ruby 1.9.1

2009-04-06 Thread ruby.freeman
> Where did you get that information? > Is there any workaround or patch for that problem with ActiveRecord? See, when I do some requests from rails console, I see that result is in utf-8 encoding, so mysql works correctly. But ActiveRecord sets encoding for all attributes as ASCII-8BIT. For now

[Rails] Re: mysql encoding with rails 2.3.2 and ruby 1.9.1

2009-04-04 Thread ruby.freeman
> Your question should also be posted to driver maintainers and possible the > MySQL and SQLite projects.  Furthermore, all these projects are open-source. > Thus, please feel free to contribute/add these features if you need them. It's problem of rails, not mysql library. ActiveRecord should be

[Rails] Re: RESTful routing in 2.3 breaks

2009-03-22 Thread ruby.freeman
the solutions is that now we have to set :method => :get in options, but not in :url hash. then it works --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email t

[Rails] mysql encoding with rails 2.3.2 and ruby 1.9.1

2009-03-21 Thread ruby.freeman
when I run console with ruby 1.9.1 and rails 2.3.2, and trying to do something like User.first.name.encoding I'm getting #, though I've set "encoding: utf8" in database.yml any suggestions? --~--~-~--~~~---~--~~ You received this message because you are subscrib

[Rails] Re: RESTful routing in 2.3 breaks

2009-03-17 Thread ruby.freeman
no, sorry. it still doesn't work --~--~-~--~~~---~--~~ 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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send

[Rails] Re: RESTful routing in 2.3 breaks

2009-03-17 Thread ruby.freeman
found. now I have to write '_method' instead of :_method thanks to all --~--~-~--~~~---~--~~ 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 rubyonrails-talk@googlegroups.co

[Rails] Re: RESTful routing in 2.3 breaks

2009-03-17 Thread ruby.freeman
> Isn't _method only there for those methods that browsers won't use (eg > DELETE). You should be able to make link_to_remote do an actual get > rather than a fake one. the question is - why rails 2.2.2 generates right JS cod for Ajax GET request, but 2.3.2 isn't. It doesn't matter wich exactly

[Rails] Re: RESTful routing in 2.3 breaks

2009-03-17 Thread ruby.freeman
I also found, that :_method => :get in link_to_remote doesn't work anymore. That is, rails 2.3.2 doesn't treat it as GET request, but as POST. so REST route doesn't work --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups