[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 di

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

2011-03-12 Thread craayzie
This was almost too easy :) Again - not sure if I'm doing this the right way but all I did was add Rack::ResponseHeaders before the Rack::Rewrite call like so: config.middleware.insert_before(Rack::Rewrite, Rack::ResponseHeaders) do |headers| headers['Cache-Control'] = 'max-age=3600' end On

[Radiant] Tags and taggable

2011-03-12 Thread rosslaird
I have the tags extension installed, and I want to try out taggable. But it seems that both use a table called "tags," and this causes the migration of taggable to halt. I suppose I will have to remove the tags extension to install taggable, but if there is another way to do this (so that I preserv

Re: [Radiant] Tags and taggable

2011-03-12 Thread Wesley Gamble
Should be straightforward to change the table name and model reference to it using "set_table_name" in one of the extensions. Sent from my iPhone On Mar 12, 2011, at 4:18 PM, rosslaird wrote: > I have the tags extension installed, and I want to try out taggable. > But it seems that both use a