开发者

Active Scaffold + Ruby 2.3.5 not working

I have an application with Rails 2.3.5. And Im trying to use AS latest version, I have used it previously but cant make it work here. I have my ingredient_categories Controller, where i put

class Administration::IngredientCategoriesController < ApplicationController
layout "default"
    active_scaffold :ingredient_categories 
end

I have this set up on routes to be :active_scaffold=>true I have a model also called ingredient_category, and in the views folder (inside administration/ingredient_categories, and /ingredient_categories) i have nothing as it is usual.

And Im getting over and over again:

Template is missing

Missing template ingredient_categories/list.html in view path themes/aqueouslight:app/views

I had an error before asking me for 开发者_JAVA技巧a list.erb, which I created and put

'ingredient_categories', :label => 'Categorias' %>

And now this error of the list.thml... Cant make it work! dont know whhy really... whould be SO simple and its burning my head now.. Thanks!


Make sure you have the render_component plugin installed, as it was deprecated from rails 2.3.x and is used by active scaffold

This may not be the cause of your particular problem but you will have trouble with it if you combine AS+Rails2.3.x

I hope it helps

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜