Re: [Rails-core] #all changes in 4.0

2013-02-28 Thread anuj dutta
On 28 Feb 2013, at 21:46, Will Bryant wrote: > You have to use reload.to_a to work with everything (enumerable methods for > eg.). > > Can we have a method that does this and make it part of the stable API, > please? That's what #all has always done and it's pretty basic functionality. > >

Re: [Rails-core] #all changes in 4.0

2013-02-28 Thread Will Bryant
You have to use reload.to_a to work with everything (enumerable methods for eg.). Can we have a method that does this and make it part of the stable API, please? That's what #all has always done and it's pretty basic functionality. On 1/03/2013, at 01:42 , Rafael Mendonça França wrote: > #r

Re: [Rails-core] #all changes in 4.0

2013-02-28 Thread Jon Leighton
On 28/02/13 05:30, Will Bryant wrote: > The thing that's got worse is having to write different code for > associations vs. relations. Currently #all will behave exactly the same > way on both, which is very useful because you can write code on a model > class that works the same way whether it's

[Rails-core] Multiple route files

2013-02-28 Thread Wojciech Wnętrzak
I found change in rails default path for routes: 3.2: Rails.application.config.paths["config/routes"] 4.0: Rails.application.config.paths["config/routes.rb"] This was introduced in https://github.com/rails/rails/commit/6acebb38bc0637bc05c19d87f8767f16ce79189b and later on removed (but without p

[Rails-core] Make `ActionView::Helpers::InstanceTag#tag_id`, `ActionView::Helpers::InstanceTag#tag_id_with_index(index)` public?

2013-02-28 Thread 簡煒航
As I asked in StackOverflow I think it would be helpful since we can dynamically create javascript code to control each input tag in form helper, what do you think? Or there has already been a so

[Rails-core] Make `ActionView::Helpers::InstanceTag#tag_id`, `ActionView::Helpers::InstanceTag#tag_id_with_index(index)` public?

2013-02-28 Thread 簡煒航
As I asked in StackOverflow I think it would be helpful since we can dynamically create javascript code to control each input tag in form helper, what do you think? Or there has already been a so

Re: [Rails-core] #all changes in 4.0

2013-02-28 Thread Rafael Mendonça França
#reload doesn't work to you? Rafael Mendonça França http://twitter.com/rafaelfranca https://github.com/rafaelfranca On Thu, Feb 28, 2013 at 2:30 AM, Will Bryant wrote: > The thing that's got worse is having to write different code for > associations vs. relations. Currently #all will behave e