XML and XSL Views in Ruby on Rails -



XML and XSL Views in Ruby on Rails -

i'm pretty new ruby , can't seem find solution this. have xml , xsl file i'm trying link main page of site. set 'members' view , set name of view files members.xsl , index.xml.erb. i'm trying figure out how link , show xml file main page view (using header , footer set in app/views/index.html/erb loads ok). info isn't beingness pulled database, it's hard coded in xml , html view hard coded in xsl file.

from main page i'm trying link xml file using following:

<p><a class="button" href="<%= link_to 'members', controller: '/members' %>">members</a></p>

if go http://localhost:3000/members error:

missing template members/index, application/index {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :jbuilder]}. searched in: * "c:/sites/test/app/views"

and if go main page button says 'members' ">members after needs escape character or something. if click on button get:

no route matches [get] "/%3ca%20href="

if point me in right direction here, i'd appreciate it.

ruby-on-rails xml xslt

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -