Tag: "rdquo"

Redirect “/” to resourceful routes in Rails' routes.rb

draw do

# map '/' to be a redirect to '/movies'
root 'movies#index'
resources :movies
end




I am trying to redirect the default/home directory on an app to "movies#show".draw do

# map '/' to be a redirect to '/movies'
get "/", to: "movies#index" # I also tried movies#show
resources :movies
end


rake routes says:

RubyDep: WARNING: Your Ruby is outdated/buggy.

How to pass carat character “^” as a parameter in XSLT

How to pass carat character "^" as a parameter in XSLT

Below line tries to call a template but I'll get an error which is "unexpected token '^' in the expression"

<xsl:call-template name="tokenizeString">
<xsl:with-param name="list" select="sg[@ty='TST']/fs/f[@ix='5']/vl"/>
<xsl:with-param name="delimiter" select="^"/>
</xsl:call-template>


This is some part of my data and I need to split it
TEST12^Dr K Test^^^^^^^LAB^^^^DN^GOS&TFHS Hospital

My template is:

<xsl:template name="tokenizeString">
<xsl:param name="list"/>
<xsl:param name="delimiter"/>
<!-- body of template -->
</xsl:template>



Try changing the following line of code

<xsl:with-param name="delimiter" select="^"/>


with

<xsl:with-param name="delimiter" select="'^'"/>


or

<xsl:with-param name="delimiter" select="'&#94;'"/>