Hi there,
I've been using A Scaffold for various projects. And there is
something weird happening to me.
I have a controller where I just have the following
class Administration::IngredientsController < ApplicationController
 active_scaffold :ingredients do |config|
    list.per_page=10
    config.update.link.label = "Editar"
    config.delete.link.label = "Eliminar"
    config.show.link.label = "Ver"
    config.create.link.label = "Crear Nuevo"
    columns[:name].label = "Nombre"
    columns[:name_code].label = "Codigo nombre"
    config.label="Ingredientes"
    config.columns = [:name, :name_code]
  end
end

In model I have nothing - haven't done relations yet, and in routes I
have:
map.namespace :administration, :path_prefix => 'admin' do |admin|
     admin.resources :ingredients, :active_scaffold=>true
[...]
end


And I'm getting an error of:
 NameError in Administration/ingredientsController#index

uninitialized constant RecipeIngredient

.. I haven't done any relation between recipes and ingredients yet and
it's getting me crazy.... is there anything wrong in  controller
definition of active scaffold?
Please, let me know if i'm doing something wrong it's driving me
crazy.
Thanks in advance!
-- 
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.


Reply via email to