Search code examples
stringrhomobilesubstr

String function substr in rhomobile


Can i use all the rails string functions in Rhomobile? When i tried using substr in my rhodes app,it returned an error. Please suggest a solutions.


Solution

  • Rhodes uses Ruby, not rails. You can still use gsub and all the other ruby string functions.
    For a link with all options go here: http://www.ruby-doc.org/core-1.9.2/String.html