|
[Newbie] Trying to use Inflections in a non active record class: msg#00234lang.ruby.rails.core
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> |
|---|---|---|
| Previous by Date: | Re: ActiveRecord: private versus protected methods, urbanus |
|---|---|
| Next by Date: | Re: ActiveSupport::Multibyte for better Unicode support, Thijs van der Vossen |
| Previous by Thread: | ActiveRecord: private versus protected methods, urbanus |
| Next by Thread: | Re: [Newbie] Trying to use Inflections in a non active record class, Jeremy Kemper |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |