Wednesday, October 28, 2009

[Rails] Re: rendering OUTSIDE request

Quoting Frantisek Psotka <rails-mailing-list@andreas-s.net>:
>
> If there is somenthing like "render_to_string" - that you can use only
> in controller.
>

You can use wget in a cronjob to invoke a controller request/method. If none
of your users are on the same box, use local_request? method to block
invocation by other means. Or use some other method of
authentication/authorization.

HTH,
Jeffrey

P.S. local_request? checks for 127.0.0.1 request IP address.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate