On 08/28/2014 08:14 AM, Dave Castellano wrote:
The hyperlink below is being evaluated to
"questions/www.somewhere.com":
q = eval(question) # Converts (evaluates) the question string from
the database back into code.
question =" ... from a light source is equal to the <a
href='www.somewhere.com'>index of refraction</a> (n) divided by the
distance (in meters) of the light rays..."
Can anyone point me in the right direction as to why "questions" is
being prepended to the route and how to avoid that from happening.
The hyperlink below is being evaluated to
"questions/www.somewhere.com":
q = eval(question) # Converts (evaluates) the question string from
the database back into code.
question =" ... from a light source is equal to the <a
href='www.somewhere.com'>index of refraction</a> (n) divided by the
distance (in meters) of the light rays..."
Can anyone point me in the right direction as to why "questions" is
being prepended to the route and how to avoid that from happening.
Your link is a relative link to the file “www.somewhere.com” in the
current directory, *not* a link to the site www.somewhere.com. You need
an explicit method, e.g.:
<a href='http://www.somewhere.com/'>
~Chris
--
Chris Maden, text nerd <URL: http://crism.maden.org/ >
Surround hate and force it to surrender.
GnuPG fingerprint: DB08 CF6C 2583 7F55 3BE9 A210 4A51 DBAC 5C5C 3D5E
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/53FF41E1.5050901%40maden.org.
For more options, visit https://groups.google.com/d/optout.
Chris Maden, text nerd <URL: http://crism.maden.org/ >
Surround hate and force it to surrender.
GnuPG fingerprint: DB08 CF6C 2583 7F55 3BE9 A210 4A51 DBAC 5C5C 3D5E
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/53FF41E1.5050901%40maden.org.
For more options, visit https://groups.google.com/d/optout.