This fix worked for me thanks!

On Sep 6, 5:11 am, Philipp <[EMAIL PROTECTED]> wrote:
> hello,
> got it to work ! (again)
> i found this hint 3 month ago some where in the web, but today i
> reinstalled my rails and had the same problem as u have ...
> i think this sollution is not nice but its working ;-)
>
> patch your rails 2.1
> /lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
> associations.rb
>
> modify around line 1640
>
>          def join_for_table_name(table_name)
> -           [EMAIL PROTECTED]|j|j.aliased_table_name == table_name.gsub(/
> ^\"(.*)\"$/){$1} }.first rescue nil
> +             join = (@joins.select{|j|j.aliased_table_name ==
> table_name.gsub(/^\"(.*)\"$/){$1} }.first) rescue nil
> +          return join unless join.nil?
> +             @joins.select{|j|j.is_a?(JoinAssociation) &&
> j.aliased_join_table_name == table_name.gsub(/^\"(.*)\"$/){$1} }.first
> rescue nil
>           end
>
> hope this helps
>
> regards
> Philipp
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to