Tyler Larson
2006-Jul-26 19:28 UTC
[Rails] mixing ebr and builder together and having it render as html in the browser
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060726/85ae9efb/attachment.html
Cheolhan Yoon
2006-Nov-03 03:17 UTC
Re: mixing ebr and builder together and having it render as
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. > -Tylerin .rxml response.headers[''Content-Type''] = ''text/html'' my trick : ) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---