Rails, by default, generates HTML with the html.erb files, thus we need to use xml.builder to generate xml files and use the controller to different what we're trying to get. Use xml.builder extensions and respond_to do |format| ... end blocks to generate xml so the code stops looking and feeling like cancer
Rails, by default, generates HTML with the html.erb files, thus we need to use xml.builder to generate xml files and use the controller to different what we're trying to get. Use xml.builder extensions and respond_to do |format| ... end blocks to generate xml so the code stops looking and feeling like cancer