0

I am using a simple rails app to read from a text file and display the information on a webpage. the html code is this

 <td><%= application.server %></td>

I am using mysql2 and the column server is a text type. (not string) when I check the database the data in it is of the form "apachetra-137.vm.micronet.net" but on the HTML page, i only get the "micronet" string!! Why does it return me only a part of the string but not all of it since in the database it is stored as whole??

4
  • 1
    You mean application.server is returning part of the string?
    – Samiron
    Aug 24, 2012 at 8:35
  • hey I had to restart the server! weird! I changes from sqlite to mysql but it didnt work, so I had to restart the server
    – Test Test
    Aug 24, 2012 at 8:57
  • ha ha ha... new thing to learn :) Anyway, great that the problem fixed :)
    – Samiron
    Aug 24, 2012 at 9:25
  • I'm voting to close this question as no-longer-active because according to comments author has solved his issue, but question still appears in search in spite of it won't receive author's attention anymore.
    – Paul
    Jun 19, 2016 at 10:45

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.