Mixing ebr and builder together and having it render as html

The first problem is that if you make a builder or .rxml file it always
displays as xml in a browser. declare! it and the browser gives and
error
and if you change rxml to rhtml then it thinks you should be making erb.
SO
quetion #1 is how do I make builder files render in the browser as html.

The next thing that I want to be able to do is be able to render
parcials or
call other files of other types and combine them into my file. Is this
posible?

If this doesn’t work it is OK I will just remake all of my erb files to
builder files but I will have to be able to do number one. And I have
already looked into markaby but really what I want it to be able to do
is
mix builder and erb not rewrite everything in markaby. Thanks for the
help.
-Tyler

Tyler Larson wrote:

The first problem is that if you make a builder or .rxml file it always
displays as xml in a browser. declare! it and the browser gives and
error
and if you change rxml to rhtml then it thinks you should be making erb.
SO
quetion #1 is how do I make builder files render in the browser as html.

The next thing that I want to be able to do is be able to render
parcials or
call other files of other types and combine them into my file. Is this
posible?

If this doesn’t work it is OK I will just remake all of my erb files to
builder files but I will have to be able to do number one. And I have
already looked into markaby but really what I want it to be able to do
is
mix builder and erb not rewrite everything in markaby. Thanks for the
help.
-Tyler

in .rxml

response.headers[‘Content-Type’] = ‘text/html’

my trick : )

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs