Hi, I have a loop which loops through all the associations for a particular model, what i want is to display a label with the class name formatted like "My Class Name" <% @project.reflect_on_all_associations.each do |association| %> <%= association.name %> <%= association.class.name %> <% end %> The above gives me "my_class_name" and the second output gives me "MyClassName" but what i want is My Class Name" without the underscore and with a space after the capitals. Is there a quick way to this with rails or do i need to write a method to handle this? Any Advice appreciated, Johnny B -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---