<%= @contact.foo_help %>
Outputs a number id and title (with a space between them), ex: 29292 This Is A Title. I just want the number. It won't always be the same amount of digits, and ocassionly I use numbers in my titles.
I was thinking the easiest way would be to gsub everything after the first space out, but I'm two weaks into this framework and can't get the synstax right! Please help
<%= @contact.foo_help.gsub( \s ' ') %>