On 28/05/2009, at 8:03 AM, Andrew Selder wrote: > The problem hear is that I have a model named EventsHeadliners (don't > blame me, I didn't create it). So when I say > > active_scaffold :events_headliners, it goes off and looks for an > EventsHeadliner model and fails, and blows up. > > Other than renaming the model, it there any way to get this to work?
Have you tried making it uncountable by putting an entry in the config/ initializers/inflections.rb file? Here's an example of what my inflections.rb file is like: ActiveSupport::Inflector.inflections do |inflect| inflect.uncountable %w(Equipment equipment BulkData bulk_data) end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en -~----------~----~----~----~------~----~------~--~---
