Great idea Phillip. Is there a way I can call curl from the rails app and
save the output to a designated area within the app directory?

On Wed, Oct 20, 2010 at 12:28 PM, Philip Hallstrom <[email protected]> wrote:

>
> On Oct 20, 2010, at 7:48 AM, [email protected] wrote:
>
> Hi All,
>
> I can't seem to render a template outside of a controller in my Rails 3
> application. The googling I've done has been helpful, and I eventually found
> some useful info at
> http://www.swombat.com/rails-rendering-templates-outside-of-a-contro.
> However, this seems to be broken in Rails 3. Does anyone have any ideas how
> I can fix this method or perhaps know of a better approach?
>
>
> Based on your other emails it seems you want this file to be saved for some
> 3rd-party use later on.
>
> Why not just.... curl 'http://yourdomain.com/path/to/view' >  saved.html
>
> If you're going outside of Rails, make life easy and go all the way :)
>
> --
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to