String inflections define new methods on the String class to transform names for different purposes. For instance, you can figure out the name of a table from the name of a class.
'ScaleScore'.tableize # => "scale_scores"
Constants
BLANK_RE = /\A[[:space:]]*\z/
Attributes
  
    
      Register or 
      log in
      to add new notes.
  
  
  
  
      
     eric_programmer -  
    January 15, 2009
 eric_programmer -  
    January 15, 2009 
    
  
  
  
       
  
  
  
  
      
     ncancelliere -  
    January 15, 2009 - (v1.2.6 - v2.2.1)
 ncancelliere -  
    January 15, 2009 - (v1.2.6 - v2.2.1)
    
  
  
  
       
  
  
  
           eric_programmer -  
    January 15, 2009
 eric_programmer -  
    January 15, 2009 
    
  
    
    2 thanks
     
  
  
  constantize
@ncancelliere - Instead use constantize which is provided as part of ActiveSupport. It is much easier. So:
mystring.constantize
 ncancelliere -  
    January 15, 2009 - (v1.2.6 - v2.2.1)
 ncancelliere -  
    January 15, 2009 - (v1.2.6 - v2.2.1)
    
  
    
    0 thanks
     
  
  
  Convert String to Class
this example shows how you can take a string and # make it a class and then send it a method
Kernel.const_get(my_string.capitalize).select_options

 RSpec
RSpec Ruby on Rails
Ruby on Rails Ruby
Ruby 
   
   
   
   = private
 = private = protected
 = protected
     
    