Ah, which is why I'll have to go the send_file route, of course -- I do need
authentication.
Cheers everyone for their input.
   Doug.

2009/12/7 Caius Durling <[email protected]>

> On 7 Dec 2009, at 11:06, Adam Holt wrote:
>
> > if you need a controller (for authentication for example), you can do it
> anywhere using routes and send_file '/path/to/index.json', :type =>
> 'application/json'.
>
>
> Good point, doing it as a static file makes it available to anyone.
>
> 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.


Reply via email to