I'll cuke it & see what happens! :) 2009/12/7 doug livesey <[email protected]>
> Or a less confusable example with a controller called > Static::ThingsController & an index action: > /public/static/things/index.json > > 2009/12/7 doug livesey <[email protected]> > > So, if the controller was Static::ModelsController, and the action was >> index, I'd just create this file: >> /public/static/models/index.json >> >> and that should serve it up? >> Cheers, >> Doug. >> >> 2009/12/7 Caius Durling <[email protected]> >> >> On 7 Dec 2009, at 10:43, doug livesey wrote: >>> >>> > Should I call something like: >>> > render( :file => "/path/to/file.json", :layout => false, :status => >>> :ok ) >>> > >>> > Or is there a better way? >>> >>> >>> Can't you just put it in the right series of folders under ./public and >>> your webserver (assuming apache/passenger, but should work with others) will >>> serve it straight off the disk for you? >>> >>> C >>> --- >>> Caius Durling >>> [email protected] >>> +44 (0) 7960 268 100 >>> http://caius.name/ >>> >>> -- >>> >>> You received this message because you are subscribed to the Google Groups >>> "NWRUG" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]<nwrug-members%[email protected]> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/nwrug-members?hl=en. >>> >>> >>> >> > -- You received this message because you are subscribed to the Google Groups "NWRUG" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nwrug-members?hl=en.
