generators/templates/model/controller.rb in rhodes-0.2.0 vs generators/templates/model/controller.rb in rhodes-0.2.1

- old
+ new

@@ -1,29 +1,29 @@ require 'rho/rhocontroller' class <%= class_name %>Controller < Rho::RhoController - + #GET /<%= class_name %> def index @<%= name.pluralize %> = <%= class_name %>.find(:all) - render :index + render end # GET /<%= class_name %>/1 def show @<%= name.pluralize %> = <%= class_name %>.find(@params['object']) end # GET /<%= class_name %>/new def new @<%= name %> = <%= class_name %>.new - render :new + render :action => :new end # GET /<%= class_name %>/1/edit def edit @<%= name %> = <%= class_name %>.find(@params['id']) - render :edit + render :action => :edit end # POST /<%= class_name %>/create def create @<%= name %> = <%= class_name %>.new(@params['<%= name %>'])