> class Galerie > has_many :galeries > @galerie = Galerie.new > @galeries = @profile.galeries > NameError in GaleriesController#index > > uninitialized constant Profile::Galery > > Where the 'galery' comes from ?
Rails does singular-plural-singular conversion for you. Your problem is that your model should be called Gallery. Loading development environment (Rails 2.1.1) >> "gallery".pluralize => "galleries" >> "galleries".singularize => "gallery" steve --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lovd by Less" 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/lovdbyless?hl=en Who loves ya baby? -~----------~----~----~----~------~----~------~--~---
