[Radiant] setting Cache-Control for static assets

2011-03-12 Thread craayzie
I've got Radiant deployed on Heroku and wanted to have it serve a static site in addition to my Radiant site. I used rack-rewrite to map requests for the static site to the right location but I'm not sure how to add the proper Cache-Control response header. Could you please point me in the right

[Radiant] Re: setting Cache-Control for static assets

2011-03-12 Thread craayzie
On Mar 12, 1:20 am, craayzie flesh...@gmail.com wrote: I've got Radiant deployed on Heroku and wanted to have it serve a static site in addition to my Radiant site. I used rack-rewrite to map requests for the static site to the right location but I'm not sure how to add the proper Cache-Control

[Radiant] Re: send multiple emails with mailer?

2011-02-27 Thread craayzie
rather than just creating an additional extension, in your case. I've used mailer for a simple contact form. My cursory look at the code didn't suggest a clean way to be able to use the one form submission to generate two separate emails. Marc On Feb 25, 8:13 am, craayzie flesh

[Radiant] Re: send multiple emails with mailer?

2011-02-27 Thread craayzie
: On 27 Feb 2011, at 19:16, craayzie wrote: If someone could jump in and provide guidance on how to best implement sending multiple emails upon form submission that would be huge. I'd hate to spend time working on an implementation only to figure out afterwards that it wasn't the best approach

[Radiant] Re: if_url in layouts?

2011-02-22 Thread craayzie
Thanks John! That did the trick :) Turns out I was placing if_url in the wrong layout. As soon as I moved it to the correct layout the if_url match worked perfectly. Thanks for the help! On Feb 21, 7:37 pm, john johnm...@gmail.com wrote: On Monday, February 21, 2011 8:07:33 PM UTC-6, craayzie

[Radiant] mailer + jquery .ajax submission

2011-02-22 Thread craayzie
I can't seem to figure out how to get jquery .ajax submission to work w/ the mailer extension. Has anyone implemented this before and could you point me to an example? It seems that mailer's form action parameter is hard-coded mine reads: form name=mailer[contact] id=mailer method=post

[Radiant] Re: mailer + jquery .ajax submission

2011-02-22 Thread craayzie
 am, craayzie flesh...@gmail.com wrote: I can't seem to figure out how to get jquery .ajax submission to work w/ the mailer extension. Has anyone implemented this before and could you point me to an example? It seems that mailer's form action parameter is hard-coded mine reads: form name

[Radiant] if_url in layouts?

2011-02-21 Thread craayzie
I'm trying to use if_url to conditionally include jquery on my / contact page but it doesn't seem to be working: r:if_url matches=^/contact script type=text/javascript src=http://ajax.googleapis.com/ ajax/libs/jquery/1.5.0/jquery.min.js/script /r:if_url Any ideas what I might be

[Radiant] Re: if_url in layouts?

2011-02-21 Thread craayzie
, Feb 22, 2011 at 11:22 AM, craayzie flesh...@gmail.com wrote: I'm trying to use if_url to conditionally include jquery on my / contact page but it doesn't seem to be working:    r:if_url matches=^/contact      script type=text/javascript src=http://ajax.googleapis.com/ ajax/libs/jquery

[Radiant] Re: if_url in layouts?

2011-02-21 Thread craayzie
? Thanks! On Feb 21, 4:46 pm, Anton J Aylward radi...@antonaylward.com wrote: craayzie said the following on 02/21/2011 07:22 PM: . I'm trying to use if_url to conditionally include jquery on my / contact page but it doesn't seem to be working:     r:if_url matches=^/contact

[Radiant] Re: vhost extension site scoping

2011-02-14 Thread craayzie
) Has anyone run into this before? On Feb 14, 12:50 am, Haselwanter Edmund edm...@haselwanter.com wrote:   Snippet:     name:       message:         'Name wurde schon verwendet'       scope:         site_id in config/vhost.yml should do the trick ... On 14.02.2011, at 09:14, craayzie

[Radiant] Re: vhost extension site scoping

2011-02-14 Thread craayzie
The migration to remove the unique constraint works great (below) but when I try to roll it back I get the following from sqlite: $ rake db:rollback (in /Users/username/Sites/heroku) == CleanUpSnippetConstraints1: reverting = -- remove_index(:snippets,

[Radiant] Re: vhost extension site scoping

2011-02-14 Thread craayzie
something obvious here? class CleanUpSnippetConstraints ActiveRecord::Migration def self.up remove_index :snippets, :name = name end def self.down add_index snippets, [name], :name = name, :unique = true end end On Feb 14, 2:02 pm, craayzie flesh...@gmail.com wrote

[Radiant] Re: best code syntax highlighting solution

2011-02-13 Thread craayzie
Thanks John - exactly what I was looking for. Do you know how to specify multiple params for Coderay? I want to tell it to hide line numbers but can't seem to get to recognize the command. Here's what I'm trying: def meth options --p options end {:lang=ruby, :line_numbers=false} Am I

[Radiant] vhost extension site scoping

2011-02-13 Thread craayzie
I now have two sites running on the same Radiant instance using the vhost extension. When I try to add a snippet to the 2nd site, ActiveRecord complains that I'm violating the unique constraint on the snippet name. I thought the apply_site_scoping rake task of the vhost extension would have

[Radiant] Re: vhost extension site scoping

2011-02-13 Thread craayzie
, created_by_id, lock_version, content, site_id) VALUES('google_analytics', NULL, '2011-02-14 05:59:51', '', '2011-02-14 05:59:51', 1, 0, 'blam', 2) On Feb 13, 9:46 pm, craayzie flesh...@gmail.com wrote: So this appears to be simple issue of the Snippets model validation not being updated. I know

[Radiant] Re: vhost extension site scoping

2011-02-13 Thread craayzie
to create the constraint without generating an index? On Feb 13, 10:27 pm, craayzie flesh...@gmail.com wrote: It looks like it's a DB-level constraint that's throwing the error as opposed to something at the model level .. still figuring out how to correct this ..

[Radiant] Re: Designing the Radiant Way?

2011-02-11 Thread craayzie
Daniel - thanks for posting this. I'm about to embark on this very journey. Before I do - I'm curious if anyone's had any success importing the Scribbish theme Charlie put together @ https://github.com/indexzero/radiant-scribbish-theme I haven't had any success with it. When I try to import it

[Radiant] Re: installing scoped_access plugin?

2011-02-08 Thread craayzie
Ok so what I'm really trying to do is install the Saturnflyer's vhost extension. rake complains of a missing lib/tasks/add_site_columns file. Any ideas? $ rake production radiant:extensions:vhost:install (in /Users/fimaleshinsky/Sites/heroku) rake aborted! no such file to load --

[Radiant] Re: Kramdown vs. markdown filter

2011-01-01 Thread craayzie
how do you disable markdown? I'm running 0.9.1 thanks in advance! On Dec 16 2010, 4:51 pm, john muhl johnm...@gmail.com wrote: On Thu, Dec 16, 2010 at 6:42 PM, Wes Gamble we...@att.net wrote: Thanks John, I installed the kramdown filter, took a page and switched it from markdown to

[Radiant] deploying radiant 0.9.1 with capistrano

2010-12-14 Thread craayzie
I've done some searching on a guide for how to use capistrano + git + bundler to deploy radiant 0.9.1 but haven't had much success in finding something comprehensive. Is deploying radiant the same as deploying a Rails app? I do my development on a MacBook and have a staging and production server

[Radiant] Re: best code syntax highlighting solution

2010-12-12 Thread craayzie
I can't quite figure out how to use the coderay gem. Could you provide some guidance around how to do it? I see that there are filters available to me via extensions that allow me to leverage different text markups - I'm guessing I'd have to use the coderay gem in a different manner? Or should it

[Radiant] best code syntax highlighting solution

2010-12-07 Thread craayzie
I've begun to explore Radiant as a publishing/blogging platform. At the moment, I'm trying to nail down is how to best format command-line output or code as the majority of the content published will be of a technical nature. Can someone point me in the right direction of what I should use to get

[Radiant] vanilla radiant 0.9.1 install broken?

2010-11-25 Thread craayzie
I'm able to install the radiant 0.9.1 gem and it's dependencies no problem but when I start Mongrel and switch to the Administrator view, I don't see a way to edit/view the Articles. I see the arrow next to Articles indicating that it's a parent with child entries but I see no way to display those

[Radiant] Re: vanilla radiant 0.9.1 install broken?

2010-11-25 Thread craayzie
So it looks like it's a CSS/JS issue. I ran a quick HTTP trace and noticed that /admin/dropdown.js was 404ing. I then re-created a radiant project and sure enough that JS file was missing from the initial set of files radiant generates. dropdown.js is in the Git repo @