[Rails] Re: include and scopes

2012-01-23 Thread Damien Knight
the latter. i would like to avoid: has_many :bs_auto, :class_name => 'B', :conditions => 'auto' AND the many enquiries. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group,

[Rails] Re: include and scopes

2012-01-19 Thread Damien Knight
no one? -- Posted via http://www.ruby-forum.com/. -- 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 email to rubyonrails-talk+un

[Rails] include and scopes

2011-12-30 Thread Damien Knight
Hi, I recently changed to rails 3 and the chainability for relations(i.e. .where(xxx).order(xxx)) so here's my question: can i use scopes in my includes to avoid 1+n-query problem? i have: class A < ActiveRecord::Base has_many :bs end class B < ActiveRecord::Base scope :auto, where('auto')

[Rails] Re: rails mailer and attachments

2011-07-29 Thread Damien Knight
wow, thank you for your (long and detailed) answer. i will try it your way. and yes its really sporadic (i guess 3 - 5 problems in maybe 9000+ emails). if i have any further hints on whats wrong i will get back to you (if i may) or the mail group. thanks again -- Posted via http://www.ruby-f

[Rails] Re: rails mailer and attachments

2011-07-28 Thread Damien Knight
so you think, i have to set the mime-type of each attachment manually/explicitly? -- Posted via http://www.ruby-forum.com/. -- 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@googlegro

[Rails] Re: rails mailer and attachments

2011-07-27 Thread Damien Knight
thanks for all your work. "Which email client *isn't* showing this message correctly?" that's the hard part. my clients (VERY few of them) sometimes just say: "we didnt receive any attachments" but i am guessing that they are using some standard clients. because when i send the same pdf with t

[Rails] Re: rails mailer and attachments

2011-07-25 Thread Damien Knight
Thank you for your answer. i opened my email in thunderbird => view sourcecode (hope that shows everything): >From - Mon Jul 25 08:57:15 2011 X-Account-Key: X-UIDL: ... X-Mozilla-Status: X-Mozilla-Status2: X-Mozilla-Keys: Return-Path: Deliv

[Rails] rails mailer and attachments

2011-07-22 Thread Damien Knight
i got a problem with rails achtionmailer 3.0.7. when i send a email with attachment, sometimes the attachment is not displayed as such and is not be found in the email, but the size of the email is still big (as with attachment). it's probably hidden base64 encoded in the sourcecode. now the hard

[Rails] Re: upgrading to ruby 1.9.2

2011-05-06 Thread Damien Knight
never mind ... i upgraded to rails 3.0.7 it seems to work. -- Posted via http://www.ruby-forum.com/. -- 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

[Rails] upgrading to ruby 1.9.2

2011-05-05 Thread Damien Knight
i guess this problem (upgrading ruby to 1.9.2) was already discussed alot, but i couldnt find THE answer for me. here my situation and what a got so far. now: windows 7 ruby 1.8.6 rails 2.3.4 mysql server 5.0.11 everythings running smoothly now i need to upgrade to ruby 1.9.2 due to some needed