Re: [Radiant] Mailer Extension, again

2007-02-03 Thread Sean Cribbs
Loren, That was my change. Back last March when I was developing a Rails application that needed to send email, I dissected various gracefully-degrading emails that I got in my inbox. I found that, for most email clients, the multipart/alternative type with a text/plain and a text/html part

Re: [Radiant] Mailer Extension, again

2007-02-03 Thread Loren Johnson
Sean, Yeah since I wrote that message I'd done some looking around: http://www.wilsonweb.com/wmt5/html-email-multi.htm http://www.freesoft.org/CIE/RFC/1521/18.htm And will look into it more this afternooon. I need to follow through the code and my page to see why my the plain text version

Re: [Radiant] Mailer Extension, again

2007-02-03 Thread Loren Johnson
That makes sense however it still doesn't answer why the html version isn't being preferred by Mac Mail (not checked with any other clients yet). . . I'll rearrange the order of the parts and re-send to see that magically fixes it. L On Feb 3, 2007, at 9:43 AM, Sean Cribbs wrote:

Re: [Radiant] Mailer Extension, again

2007-02-03 Thread Loren Johnson
Thanks and np, I forget, this is the day :) Honestly I don't think changing the order of the parts will fix my problem anyway, though it does look like it should happen anyway. ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search:

Re: [Radiant] Mailer Extension, again

2007-02-03 Thread Loren Johnson
Finally, I manually re-arranged the plain and HTML parts in a test message and opened it up directly in Mac Mail. Yep... that definitely fixes it. ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search:

Re: [Radiant] Extensions are for...?

2007-02-03 Thread Benjamin Heitmann
Daniel Waite wrote: What it boils down to is I'd like to see an example of an extension in use that wasn't ported over from a behavior. Ideally the extensions makes full use of itself, including the controllers, models, views, extra Radius tags, etc. As it stands now I have no idea how an

[Radiant] Adding methods to Page from an extension

2007-02-03 Thread Jacob Burkhart
Hey I feel like I'm missing something obvious, I created an extension that adds some columns to the pages table, and now I want to add some methods to the Page class. I put this at the bottom of my Extension class class Page ActiveRecord::Base def test_new_method hi end end And now I'm

Re: [Radiant] Adding methods to Page from an extension

2007-02-03 Thread Loren Johnson
class Page ActiveRecord::Base Should be: YourPageClassName Page On Feb 3, 2007, at 4:10 PM, Jacob Burkhart wrote: Hey I feel like I'm missing something obvious, I created an extension that adds some columns to the pages table, and now I want to add some methods to the Page class. I

Re: [Radiant] Adding methods to Page from an extension

2007-02-03 Thread Jacob Burkhart
Loren Johnson wrote: class Page ActiveRecord::Base Should be: YourPageClassName Page No, I don't want to subclass page, I want to add methods to all pages. I could directly edit page.rb but I'd like to limit my edits to remain within the folder for my extension. -- Posted via

Re: [Radiant] Adding methods to Page from an extension

2007-02-03 Thread Jacob Burkhart
Jacob Burkhart wrote: Loren Johnson wrote: class Page ActiveRecord::Base Should be: YourPageClassName Page No, I don't want to subclass page, I want to add methods to all pages. I could directly edit page.rb but I'd like to limit my edits to remain within the folder for my

Re: [Radiant] Adding methods to Page from an extension

2007-02-03 Thread Sean Cribbs
It might be better to put your added methods in a module and include them in Page inside the activate method of your extension, like so: module NewPageMethods def foo bar end end # in your extension def activate Page.send :include, NewPageMethods # ... end Sean Loren

Re: [Radiant] Adding methods to Page from an extension

2007-02-03 Thread John W. Long
Jacob Burkhart wrote: Shouldn't it just get loaded by default. What do I do to fix this? Put your methods in a module and mix them into page in your extension's activate method. -- John Long http://wiseheartdesign.com ___ Radiant mailing list Post:

[Radiant] How does class loading work!?!

2007-02-03 Thread Jacob Burkhart
I'm getting more bizzaro behavior with my extension now relating to loading. In this case, a routing declaration is working the first time, and then failing on the second try. My partial calls: url_for(:controller = 'page_attributes', :action = :add) the first time it loads, and things look

Re: [Radiant] Adding methods to Page from an extension

2007-02-03 Thread Jacob Burkhart
Page.send :include, NewPageMethods That's the magic I was looking for thanks. -- Posted via http://www.ruby-forum.com/. ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site:

Re: [Radiant] How does class loading work!?!

2007-02-03 Thread Jacob Burkhart
I'm getting more bizzaro behavior with my extension now relating to loading. my stacktrace #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:1252:in `generate' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/url_rewriter.rb:104:in `rewrite_path'

Re: [Radiant] How does class loading work!?!

2007-02-03 Thread Adam Williams
Jacob, I am looking at the routes issue. The 47's are part of the template compilation magic. You can ignore it. adam williams On Feb 3, 2007, at 9:58 PM, Jacob Burkhart wrote: I'm getting more bizzaro behavior with my extension now relating to loading. my stacktrace

Re: [Radiant] How does class loading work!?!

2007-02-03 Thread Adam Williams
Jacob, I have just checked in some additional tests that show extension routes working fine. I also created an extension, put in a custom route, generated a link using url_for, and have no problems. A couple of comments below: On Feb 3, 2007, at 9:36 PM, Jacob Burkhart wrote: My partial

Re: [Radiant] svn:externals, capistrano and extensions

2007-02-03 Thread Adam Williams
On Feb 3, 2007, at 9:26 AM, Adam Salter wrote: Loren, You might want to check out svk: http://svk.bestpractical.com/view/HomePage I've found that SVK is the way to go as well. This is just a vouching type email ;) adam williams ___ Radiant

[Radiant] Mailer Behaviour... Testing with Rails Console

2007-02-03 Thread Brian Sam-Bodden
Ok, even though I haven't gotten the Mailer behaviour to work on my site yet. I have some notes here that might help others with testing their ActionMailer configuration. My environment: eApps (CentOS) Here's what I've done so far... TESTING with Telnet Tested my SMTP

[Radiant] Radiant 0.6 RC1

2007-02-03 Thread John W. Long
After a hard day’s work the core team is pleased to announce the immediate release of Radiant 0.6 RC1! Lots of changes have gone into this release—too many to enumerate them all at this time of night. Suffice it to say that the focus of this release has been the new extension system. We’ll