Method: String#no_erb
- Defined in:
- lib/core_ext/string.rb
#no_erb ⇒ String
Remove the erb extension if there is one
26 27 28 |
# File 'lib/core_ext/string.rb', line 26 def no_erb self.sub(/\.erb$/,'') end |
Remove the erb extension if there is one
26 27 28 |
# File 'lib/core_ext/string.rb', line 26 def no_erb self.sub(/\.erb$/,'') end |