From matijs at matijs.net Mon Sep 6 15:47:40 2010 From: matijs at matijs.net (Matijs van Zuijlen) Date: Mon, 06 Sep 2010 21:47:40 +0200 Subject: [typo] Integrating typo into website In-Reply-To: <8d5c48579e5c35c631131303289c3fc9@ruby-forum.com> References: <8d5c48579e5c35c631131303289c3fc9@ruby-forum.com> Message-ID: <4C85455C.6000403@matijs.net> Hi Tim, On 08/19/2010 01:44 AM, Tim Sitnikov wrote: > Is there a way to integrate typo into web site? I would like most of my > pages to have other content, and one of my pages would have the Typo > blog but it would use my layout and typo blog would be inserted into it, > similar to how<%= yield %> inserts content. Or is there software > better suited for this. I also have typo integrated into a larger web site. I did this by installing typo in a sub-uri (http://www.matijs.net/blog/), and creating a typo theme with the look I wanted for the entire web site. All my other pages match the HTML typo would generate, and use typo's style sheets. If the rest of your web site is also a Rails app then perhaps you're really looking for a blogging plugin. In that case, have a look at the following URLs (caveat: I haven't tried any of these): http://github.com/pullmonkey/simple_blog http://www.williambharding.com/blog/rails/bloggity-an-evolving-rails-blog-plugin/ http://github.com/bscofield/bloget Regards, -- Matijs From ruby-forum-incoming at andreas-s.net Mon Sep 13 18:24:24 2010 From: ruby-forum-incoming at andreas-s.net (Gabriel Williams) Date: Tue, 14 Sep 2010 00:24:24 +0200 Subject: [typo] Integrating Paperclip Message-ID: <10b24b1c3592ac91edbbc86cb17ac710@ruby-forum.com> I just started using Typo and have it installed on Heroku. Heroku doesn't allow files to be written to disk (at least not permanently) so I'm thinking of using Paperclip to handle file uploads and persisting on Amazon S3. So I have a couple questions: 1. Has anyone else integrated Paperclip (or any other file upload plugin that supports S3 like attachment-fu) with Typo before? 2. It looks like there are two separate components where Typo handles uploading files, the filemanager stuff and the CKeditorController. Is that actually the case or is there something I'm missing? I've just started to dive into the code and dig around so I wouldn't be surprised if I've overlooked something. Thanks for any help or pointers. Gabriel -- Posted via http://www.ruby-forum.com/. From matijs at matijs.net Tue Sep 14 01:59:11 2010 From: matijs at matijs.net (Matijs van Zuijlen) Date: Tue, 14 Sep 2010 07:59:11 +0200 Subject: [typo] Integrating Paperclip In-Reply-To: <10b24b1c3592ac91edbbc86cb17ac710@ruby-forum.com> References: <10b24b1c3592ac91edbbc86cb17ac710@ruby-forum.com> Message-ID: <4C8F0F2F.1010001@matijs.net> On 09/14/2010 12:24 AM, Gabriel Williams wrote: > I just started using Typo and have it installed on Heroku. Heroku > doesn't allow files to be written to disk (at least not permanently) so > I'm thinking of using Paperclip to handle file uploads and persisting on > Amazon S3. So I have a couple questions: > > 1. Has anyone else integrated Paperclip (or any other file upload plugin > that supports S3 like attachment-fu) with Typo before? It seems someone else is working it, but it doesn't seem like he got very far yet: http://github.com/framallo/typo/commit/c72221a580ee8ac650c159948700945217b8dd3f Maybe you can combine forces? > 2. It looks like there are two separate components where Typo handles > uploading files, the filemanager stuff and the CKeditorController. Is > that actually the case or is there something I'm missing? I've just > started to dive into the code and dig around so I wouldn't be surprised > if I've overlooked something. I must admit this is a part of the code I know very little about, but you will definitely need to take into account Admin::BaseHelper#show_thumbnail_for_editor and Admin::ResourcesHelper#show_thumbnail. And of course you'll have to rewrite the Resource model, but that's kind of the point of integrating paperclip. Let us know how you're doing. Regards, -- Matijs From ruby-forum-incoming at andreas-s.net Wed Sep 29 17:24:54 2010 From: ruby-forum-incoming at andreas-s.net (Gabriel Williams) Date: Wed, 29 Sep 2010 23:24:54 +0200 Subject: [typo] Integrating Paperclip In-Reply-To: <4C8F0F2F.1010001@matijs.net> References: <10b24b1c3592ac91edbbc86cb17ac710@ruby-forum.com> <4C8F0F2F.1010001@matijs.net> Message-ID: <782c20771cbe3873ae29121adb1e0cd0@ruby-forum.com> Thanks Mat. I was hoping not to have to refactor quite so much of the existing code, but I think you're right that I'll have to overhaul all of the Resource model. I'm going to dig into this over the next week or so. If I get anywhere with it I'll report back. I'm sure I can't be the only person who has this need. Gabriel -- Posted via http://www.ruby-forum.com/. From frederic at de-villamil.com Wed Sep 29 17:27:33 2010 From: frederic at de-villamil.com (=?iso-8859-1?Q?de_Villamil_Fr=E9d=E9ric?=) Date: Wed, 29 Sep 2010 23:27:33 +0200 Subject: [typo] Integrating Paperclip In-Reply-To: <782c20771cbe3873ae29121adb1e0cd0@ruby-forum.com> References: <10b24b1c3592ac91edbbc86cb17ac710@ruby-forum.com> <4C8F0F2F.1010001@matijs.net> <782c20771cbe3873ae29121adb1e0cd0@ruby-forum.com> Message-ID: <03A44E49-E867-4EEA-9985-FC241677667F@de-villamil.com> Le 29 sept. 2010 ? 23:24, Gabriel Williams a ?crit : > Thanks Mat. I was hoping not to have to refactor quite so much of the > existing code, but I think you're right that I'll have to overhaul all > of the Resource model. I'm going to dig into this over the next week or > so. If I get anywhere with it I'll report back. I'm sure I can't be > the only person who has this need. > > Gabriel Hello Gabriel, If you start working on a paperclip integration, please do it on the Rails 3 branch, as we're going to merge it to HEAD very soon. Best, Fr?d?ric -- Fr?d?ric de Villamil "What's mine is mine. What's yours is still unsetteled" ? Go player proverb frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://t37.net Typo : http://typosphere.org From ruby-forum-incoming at andreas-s.net Wed Sep 29 20:06:24 2010 From: ruby-forum-incoming at andreas-s.net (Gabriel Williams) Date: Thu, 30 Sep 2010 02:06:24 +0200 Subject: [typo] Creating new article takes 30 seconds? Message-ID: <5d247686fd49e70331588f41a85070a6@ruby-forum.com> Anyone know why it should take 30+ seconds to create a new Article? Nothing special just calling Admin::ContentController#new and @article.save is taking 30 seconds to complete. Gabriel -- Posted via http://www.ruby-forum.com/. From ruby-forum-incoming at andreas-s.net Thu Sep 30 02:16:07 2010 From: ruby-forum-incoming at andreas-s.net (Gabriel Williams) Date: Thu, 30 Sep 2010 08:16:07 +0200 Subject: [typo] Integrating Paperclip In-Reply-To: <03A44E49-E867-4EEA-9985-FC241677667F@de-villamil.com> References: <10b24b1c3592ac91edbbc86cb17ac710@ruby-forum.com> <4C8F0F2F.1010001@matijs.net> <782c20771cbe3873ae29121adb1e0cd0@ruby-forum.com> <03A44E49-E867-4EEA-9985-FC241677667F@de-villamil.com> Message-ID: <890e74dbd94dc579c86181153af689e8@ruby-forum.com> Sorry Fr?d?ric, the project I'm doing this for is running on 2.3.8 so that's what I'll be working with. I wish that it was using Rails 3. Of course, I'm assuming that the Rails 3 branch you're working on won't be backwards compatible with Rails 2.3.8 right? Gabriel de Villamil Fr?d?ric wrote: > Le 29 sept. 2010 ? 23:24, Gabriel Williams a ?crit : > >> Thanks Mat. I was hoping not to have to refactor quite so much of the >> existing code, but I think you're right that I'll have to overhaul all >> of the Resource model. I'm going to dig into this over the next week or >> so. If I get anywhere with it I'll report back. I'm sure I can't be >> the only person who has this need. >> >> Gabriel > > > Hello Gabriel, > > If you start working on a paperclip integration, please do it on the > Rails 3 branch, as we're going to merge it to HEAD very soon. > > Best, > Fr?d?ric > > -- > Fr?d?ric de Villamil > "What's mine is mine. What's yours is still unsetteled" ? Go player > proverb > frederic at de-villamil.com tel: +33 (0)6 62 19 1337 > http://t37.net Typo : http://typosphere.org -- Posted via http://www.ruby-forum.com/. From frederic at de-villamil.com Thu Sep 30 04:15:07 2010 From: frederic at de-villamil.com (=?iso-8859-1?Q?de_Villamil_Fr=E9d=E9ric?=) Date: Thu, 30 Sep 2010 10:15:07 +0200 Subject: [typo] Integrating Paperclip In-Reply-To: <890e74dbd94dc579c86181153af689e8@ruby-forum.com> References: <10b24b1c3592ac91edbbc86cb17ac710@ruby-forum.com> <4C8F0F2F.1010001@matijs.net> <782c20771cbe3873ae29121adb1e0cd0@ruby-forum.com> <03A44E49-E867-4EEA-9985-FC241677667F@de-villamil.com> <890e74dbd94dc579c86181153af689e8@ruby-forum.com> Message-ID: <2A45FA49-8B42-4ED0-A3B1-7F223E53A291@de-villamil.com> Hello, No, Rails 3 branch has nothing backward compatible with Rails 2.3.8 branch. Well, if you push your work on github, maybe (and I hope) we'll be able to backport it. Best regards Le 30 sept. 2010 ? 08:16, Gabriel Williams a ?crit : > Sorry Fr?d?ric, the project I'm doing this for is running on 2.3.8 so > that's what I'll be working with. I wish that it was using Rails 3. Of > course, I'm assuming that the Rails 3 branch you're working on won't be > backwards compatible with Rails 2.3.8 right? > > Gabriel > > de Villamil Fr?d?ric wrote: >> Le 29 sept. 2010 ? 23:24, Gabriel Williams a ?crit : >> >>> Thanks Mat. I was hoping not to have to refactor quite so much of the >>> existing code, but I think you're right that I'll have to overhaul all >>> of the Resource model. I'm going to dig into this over the next week or >>> so. If I get anywhere with it I'll report back. I'm sure I can't be >>> the only person who has this need. >>> >>> Gabriel >> >> >> Hello Gabriel, >> >> If you start working on a paperclip integration, please do it on the >> Rails 3 branch, as we're going to merge it to HEAD very soon. >> >> Best, >> Fr?d?ric >> >> -- >> Fr?d?ric de Villamil >> "What's mine is mine. What's yours is still unsetteled" ? Go player >> proverb >> frederic at de-villamil.com tel: +33 (0)6 62 19 1337 >> http://t37.net Typo : http://typosphere.org > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list -- Fr?d?ric de Villamil "What's mine is mine. What's yours is still unsetteled" ? Go player proverb frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://t37.net Typo : http://typosphere.org From frederic at de-villamil.com Thu Sep 30 04:35:19 2010 From: frederic at de-villamil.com (=?iso-8859-1?Q?de_Villamil_Fr=E9d=E9ric?=) Date: Thu, 30 Sep 2010 10:35:19 +0200 Subject: [typo] Creating new article takes 30 seconds? In-Reply-To: <5d247686fd49e70331588f41a85070a6@ruby-forum.com> References: <5d247686fd49e70331588f41a85070a6@ruby-forum.com> Message-ID: <99837D0B-9090-4553-B8F8-61329637A151@de-villamil.com> Le 30 sept. 2010 ? 02:06, Gabriel Williams a ?crit : > Anyone know why it should take 30+ seconds to create a new Article? > Nothing special just calling Admin::ContentController#new and > @article.save is taking 30 seconds to complete. > > Gabriel Hi Gabriel, Looks like Typo can't send the pings and timeouts. Go to admin / settings / write, uncheck the little checkbox, delete everything in the URL list you don't want to ping and save. It should solve your issue. Best regards -- Fr?d?ric de Villamil "What's mine is mine. What's yours is still unsetteled" ? Go player proverb frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://t37.net Typo : http://typosphere.org From matijs at matijs.net Thu Sep 30 10:48:32 2010 From: matijs at matijs.net (Matijs van Zuijlen) Date: Thu, 30 Sep 2010 16:48:32 +0200 Subject: [typo] Creating new article takes 30 seconds? In-Reply-To: <99837D0B-9090-4553-B8F8-61329637A151@de-villamil.com> References: <5d247686fd49e70331588f41a85070a6@ruby-forum.com> <99837D0B-9090-4553-B8F8-61329637A151@de-villamil.com> Message-ID: <4CA4A340.6050708@matijs.net> On 30/9/2010 10:35 AM, de Villamil Fr?d?ric wrote: > Le 30 sept. 2010 ? 02:06, Gabriel Williams a ?crit : > >> Anyone know why it should take 30+ seconds to create a new >> Article? Nothing special just calling Admin::ContentController#new >> and @article.save is taking 30 seconds to complete. >> > > Looks like Typo can't send the pings and timeouts. Go to admin / > settings / write, uncheck the little checkbox, delete everything in > the URL list you don't want to ping and save. > > It should solve your issue. Ok, looks like it's time to reintegrate my patch for sending pings in a separate thread. -- Matijs From ruby-forum-incoming at andreas-s.net Thu Sep 30 13:52:23 2010 From: ruby-forum-incoming at andreas-s.net (Gabriel Williams) Date: Thu, 30 Sep 2010 19:52:23 +0200 Subject: [typo] Creating new article takes 30 seconds? In-Reply-To: <99837D0B-9090-4553-B8F8-61329637A151@de-villamil.com> References: <5d247686fd49e70331588f41a85070a6@ruby-forum.com> <99837D0B-9090-4553-B8F8-61329637A151@de-villamil.com> Message-ID: de Villamil Fr?d?ric wrote: > Hi Gabriel, > > Looks like Typo can't send the pings and timeouts. Go to admin / > settings / write, uncheck the little checkbox, delete everything in the > URL list you don't want to ping and save. This worked. Thanks! Gabriel -- Posted via http://www.ruby-forum.com/.