[Rails] Re: Rendering partials from outside of Rails

2009-01-04 Thread Jeff
Thanks for the help on this. I figured out what my problem was. render :partial works as advertised when used in a controller, but not as a helper when used in a view (at least in Rails 2.0.2). The helper version of render tries to tack the view path to the beginning of the filepath no matter wha

[Rails] Re: Rendering partials from outside of Rails

2009-01-03 Thread pepe
>From the API: File rendering works just like action rendering except that it takes a filesystem path. By default, the path is assumed to be absolute, and the current layout is not applied. # Renders the template located at the absolute filesystem path render :file => "/path/to/some/template

[Rails] Re: Rendering partials from outside of Rails

2009-01-02 Thread Jeff
I'm using render :file, but as far as I can tell, Rails still tacks RAILS_ROOT/app/views to the beginning of the given filename. Is there a way to disable this? Ideally, I'd be rendering the partial from outside the Rails root entirely. On Jan 2, 3:42 am, Andrius Chamentauskas wrote: > render :f

[Rails] Re: Rendering partials from outside of Rails

2009-01-02 Thread Andrius Chamentauskas
render :file => ... On Jan 2, 12:32 am, Jeff wrote: > I have a client Rails project, and I'd like to create a folder outside > of the Rails app completely. The client could create vanilla HTML > files and drop them into the folder. I'd then like to render those > HTML files as partials against t