[Rails-core] Re: Rails, Class Variables and Ruby 1.9

2007-10-24 Thread Michael Koziarski
> If the usage of inherited class variables in Rails is significant, > might it not be something to be raised with the ruby core team before > they finalize the change? It's not clear to me that the change is > actually a good one, although I'm not much of a direct user of class > variables mysel

[Rails-core] Re: Render, Redirect, or... allow plugins to add further options?

2007-10-24 Thread Michael Koziarski
> What's the next step with this? Sorry for the delay, I had a bit of a patch backlog. That's been applied now. -- Cheers Koz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post

[Rails-core] Re: A stab at "fixing" fixtures

2007-10-24 Thread John Barnette
On 10/24/07, Julian Tarkhanov <[EMAIL PROTECTED]> wrote: > > DEFAULTS: &DEFAULTS > > created_on: <%= 3.weeks.ago.to_s(:db) %> > > /me smells structs & macros, but maybe that's that odd YAML smell > getting over ;-) Yeow! Serves me right for using the YAML anchor/merge syntax in those examples

[Rails-core] Re: A stab at "fixing" fixtures

2007-10-24 Thread John Barnette
A patchified version of Rathole is available for your amusement: http://dev.rubyonrails.org/ticket/9981 ~ j. On 10/22/07, John Barnette <[EMAIL PROTECTED]> wrote: > All, > > I've recently extracted a plugin that significantly improves (well, I > hope) fixtures. I'd originally written it as a

[Rails-core] Re: Ticket 9900 - declarative callbacks for ActiveRecord::Observers

2007-10-24 Thread Justin DeWind
Hmm, perhaps you could be more clear? Refactoring in terms of being able to read the code easily? Or do you mean that when using this syntax that it would be harder to make changes to it? Additonally, I think an observer should 'declare' what it is observing, rather than defining callback methods

[Rails-core] Re: Ticket 9900 - declarative callbacks for ActiveRecord::Observers

2007-10-24 Thread Jeff
On Oct 24, 6:29 pm, zdennis <[EMAIL PROTECTED]> wrote: > Ticket 9900 adds a declarative way to define observer callbacks which > seems more in line with the Rails way of thinking. > >http://dev.rubyonrails.org/ticket/9900 > > The patch is rather simple and the tests are great. Ping for core to

[Rails-core] Ticket 9900 - declarative callbacks for ActiveRecord::Observers

2007-10-24 Thread zdennis
Ticket 9900 adds a declarative way to define observer callbacks which seems more in line with the Rails way of thinking. http://dev.rubyonrails.org/ticket/9900 The patch is rather simple and the tests are great. Ping for core to give it a look, Zach --~--~-~--~~~---

[Rails-core] Re: Looking for comments on a rails patch, lazy association instantiation

2007-10-24 Thread Rick DeNatale
Sorry I intended this to go to the rails-talk list but gmail outsmarted me. On 10/24/07, Rick DeNatale <[EMAIL PROTECTED]> wrote: > Prompted by some discussion on rails-talk last week, I worked up a > patch to add an option to ActiveRecord::Base#find which allows > associations to be :included f

[Rails-core] Looking for comments on a rails patch, lazy association instantiation

2007-10-24 Thread Rick DeNatale
Prompted by some discussion on rails-talk last week, I worked up a patch to add an option to ActiveRecord::Base#find which allows associations to be :included for purposes of the where clause, but defers instantiating the included association objects. The use case is where there are a large numb

[Rails-core] Request for comments on patch

2007-10-24 Thread nachokb
Comments welcome. http://dev.rubyonrails.org/ticket/9979 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubs

[Rails-core] Request for comments on patch

2007-10-24 Thread nachokb
Comments welcome. http://dev.rubyonrails.org/ticket/9979 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubs

[Rails-core] Re: Ryan Bates' Multi-object Forms and the date_select

2007-10-24 Thread James H.
Future Googlers, I was wrong : ) On Oct 24, 5:02 pm, "James H." <[EMAIL PROTECTED]> wrote: > You bet I do! However... not today :P > > For future Googlers, until I can get a good work around what I'm doing > is using the snazzy Chronic gem. This means I can use a simple text > field and parse t

[Rails-core] Re: Beginnings of a i18n plugin agnostic api for rails edge

2007-10-24 Thread Matt Aimonetti
Sorry, we got together few times, but I'm in the middle of the San Diego fires so we had to postpone our meetings. We are really close to a proposal, just working on the details. -Matt -- http://railsontherun.com On 10/24/07, Mislav Marohnić <[EMAIL PROTECTED]> wrote: > > O

[Rails-core] Re: Beginnings of a i18n plugin agnostic api for rails edge

2007-10-24 Thread Mislav Marohnić
On 10/5/07, Matt Aimonetti <[EMAIL PROTECTED]> wrote: > > > FYI people a bunch of us got together today to discuss the proposed > API. > > Globalize, Simple Localization and GlobaLite plugins were represented. > We had a good discussion and tried to come to an agreement and a > suggestion for the c

[Rails-core] Re: Ryan Bates' Multi-object Forms and the date_select

2007-10-24 Thread James H.
You bet I do! However... not today :P For future Googlers, until I can get a good work around what I'm doing is using the snazzy Chronic gem. This means I can use a simple text field and parse the _before_type_cast version into a Date (or Time) object. James On Oct 24, 4:38 pm, "Michael Kozia

[Rails-core] Re: Utility that checks outdated patches

2007-10-24 Thread Michael Koziarski
> Are you > suggesting that some script goes through all patches on Trac after each > commit to Rails trunk and checks if they still apply cleanly? That would be > one heck of a post-commit hook. The idea is not bad, however. I know the SvK guys have talked about building something like this into

[Rails-core] Re: Ryan Bates' Multi-object Forms and the date_select

2007-10-24 Thread Michael Koziarski
> The problem appears to be that Rails doesn't know to put the date- > select information into an Array. That certainly looks like it. Have a look at trac and see if anyone else has reported this, otherwise you'll need to open a new ticket yourself. Do you feel like taking a crack at fixing it

[Rails-core] Re: A stab at "fixing" fixtures

2007-10-24 Thread Julian Tarkhanov
On 23-okt-2007, at 7:45, Courtenay wrote: > The syntax is great! But this defaults thing is difficult to remember > > DEFAULTS: &DEFAULTS > created_on: <%= 3.weeks.ago.to_s(:db) %> /me smells structs & macros, but maybe that's that odd YAML smell getting over ;-) -- Julian 'Julik' Tarkh

[Rails-core] Ryan Bates' Multi-object Forms and the date_select

2007-10-24 Thread James H.
I think I've found a bug with Edge. I'm trying out Ryan Bates' multi-object form technique shown in one of his Rails-casts (railscasts.com/episodes/75). If you use a fields_for similar to that shown (here: http://pastie.caboo.se/110480), you get a Server Error 500: -- Status: 500 Internal S

[Rails-core] Re: Patch to allow Mysql adapter to properly handle non-standard key on schema dump

2007-10-24 Thread Rick DeNatale
On 10/24/07, Rick DeNatale <[EMAIL PROTECTED]> wrote: > Oops, > > It looks like the edge testing setup changed out from under me so that > the patch won't apply to edge. > > I'll update the patch once I've figured it out. I attached a new patch which fixes the test case which was broken since a s

[Rails-core] Re: Should I make plugin tests project-independent?

2007-10-24 Thread Aaron Pfeifer
I should mention here are a few examples of its usage (besides the README): http://svn.practical.cc/plugins/acts_as_tokenized http://svn.pluginaweek.org/trunk/plugins/active_record/attributes/encrypted_attributes On Oct 24, 12:59 pm, Aaron Pfeifer <[EMAIL PROTECTED]> wrote: > We released a plugi

[Rails-core] Re: Should I make plugin tests project-independent?

2007-10-24 Thread Aaron Pfeifer
We released a plugin/gem that provides support for this type of thing: http://wiki.pluginaweek.org/Plugin_test_helper We use it in many of our own plugins. On Oct 24, 12:59 am, Josh Peek <[EMAIL PROTECTED]> wrote: > On Oct 23, 11:49 pm, "Krishna Dole" <[EMAIL PROTECTED]> wrote: > > > Is this no

[Rails-core] Re: Patch to allow Mysql adapter to properly handle non-standard key on schema dump

2007-10-24 Thread Rick DeNatale
Oops, It looks like the edge testing setup changed out from under me so that the patch won't apply to edge. I'll update the patch once I've figured it out. On 10/24/07, Rick DeNatale <[EMAIL PROTECTED]> wrote: > http://dev.rubyonrails.org/ticket/9971 > > This one cost me a few hours trying to d

[Rails-core] Re: Utility that checks outdated patches

2007-10-24 Thread Mislav Marohnić
On 10/24/07, mikong <[EMAIL PROTECTED]> wrote: > > > I just noticed I frequently encounter patches that need to be updated > because of applied changes. Maybe this can be automated? Not > automating the "updating of the patch" part, but the part where a > comment is posted to the ticket so the subm

[Rails-core] Utility that checks outdated patches

2007-10-24 Thread mikong
I just noticed I frequently encounter patches that need to be updated because of applied changes. Maybe this can be automated? Not automating the "updating of the patch" part, but the part where a comment is posted to the ticket so the submitter is informed. --~--~-~--~~~

[Rails-core] Re: text_field_with_auto_complete

2007-10-24 Thread Jeffrey Hardy
On 24-Oct-07, at 7:24 AM, alancfrancis wrote: > I just tried to use text_field_with_auto_complete on the beta gems and > discovered it's been removed for 2.0 as per the deprecation warnings. > There are some comments suggesting it'll be a plugin by the time 2.0 > ships, but I can't locate the plug

[Rails-core] Re: Rails, Class Variables and Ruby 1.9

2007-10-24 Thread Rick DeNatale
On 10/24/07, Michael Koziarski <[EMAIL PROTECTED]> wrote: > > > I don't think we have full coverage, so that's not going to work. > > We do, however, have > 0 coverage ;) If someone can set up a 1.9 test > environment, I think that's a good step in the right direction. > > > Besides, the tests mi

[Rails-core] Patch to allow Mysql adapter to properly handle non-standard key on schema dump

2007-10-24 Thread Rick DeNatale
http://dev.rubyonrails.org/ticket/9971 This one cost me a few hours trying to debug my test cases when I really needed to be debugging ActiveRecord. If you define a table with a key other than id, the db/schema.db will NOT define any primary key for the table. ActiveRecord::SchemaDumper has a m

[Rails-core] text_field_with_auto_complete

2007-10-24 Thread alancfrancis
Howdy, I just tried to use text_field_with_auto_complete on the beta gems and discovered it's been removed for 2.0 as per the deprecation warnings. There are some comments suggesting it'll be a plugin by the time 2.0 ships, but I can't locate the plugin. I was able to steal the code from the 1.2

[Rails-core] 2 more quick JSON-related patches

2007-10-24 Thread chuyeow
Just some quick cleanup and documentation. Remove obsolete ActiveSupport::JSON::Variable - http://dev.rubyonrails.org/ticket/9969 Add documentation for Hash#to_json and Enumerable#to_json - http://dev.rubyonrails.org/ticket/9970 Please review :) Thanks! Cheers, Chu Yeow --~--~-~--~--

[Rails-core] Re: acts_as_taggable

2007-10-24 Thread Jagan
Hello I am very sorry for this.I had mistakenly posted in this forum Thanks Jagan On Oct 24, 2:31 pm, Manfred Stienstra <[EMAIL PROTECTED]> wrote: > On Oct 24, 2007, at 11:08, Jagan wrote: > > > can any one give me a idea of how can i do this > > The Core list is meant for discussion of

[Rails-core] Re: acts_as_taggable

2007-10-24 Thread Manfred Stienstra
On Oct 24, 2007, at 11:08, Jagan wrote: > can any one give me a idea of how can i do this The Core list is meant for discussion of development on the framework, not for support questions. Please redirect your question to RoR: Talk: http://groups.google.com/group/rubyonrails-talk. Manfred

[Rails-core] Re: acts_as_taggable

2007-10-24 Thread Pratik
Jagan, This mailing list is for the development of the framework itself. You should resend your question to support/general mailing lists - http://groups.google.com/group/rubyonrails-talk On 10/24/07, Jagan <[EMAIL PROTECTED]> wrote: > > Hello All, > > > > I have a table for which i need to ta

[Rails-core] acts_as_taggable

2007-10-24 Thread Jagan
Hello All, I have a table for which i need to tag and i am applying acts_as_taggable for that I have a table called localities and I created a table called tags and tags_localities ,Now my requirement is i need to create new tags and i should be able to add sub tags to the new tags So it

[Rails-core] Re: Rails, Class Variables and Ruby 1.9

2007-10-24 Thread Michael Koziarski
> I don't think we have full coverage, so that's not going to work. We do, however, have > 0 coverage ;) If someone can set up a 1.9 test environment, I think that's a good step in the right direction. > Besides, the tests might have to re-written for 1.9 too. I wouldn't anticipate any breakag