logo       

[Newbie] Trying to use Inflections in a non active record class: msg#00234

lang.ruby.rails.core

Subject: [Newbie] Trying to use Inflections in a non active record class


Hi

Sorry if this is too silly to ask. I did RTFM and didn't find anything
obvious.

I have a helper class for my controller which needs to singularize
words. I need to access methods in the
ActiveSupport/CoreExtensions/String/Inflections class. Doing a require
'ActiveSupport/CoreExtensions/String/Inflections' fails.

How do I add this specific class to a helper class which is not an
active record?

Any pointers will be appreicated.

TIA

anand


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to rubyonrails-core@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
rubyonrails-core-unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core
-~----------~----~----~----~------~----~------~--~---




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise