app/controllers/elt_controller.rb in parlement-0.1 vs app/controllers/elt_controller.rb in parlement-0.2
- old
+ new
@@ -25,11 +25,11 @@
# render :partial => 'show'
#end
def list
@elt = Elt.find(params[:id]) if @elt == nil
- render :partial => 'list', :locals => { :elt => @elt }
+ render :partial => '/elt/list', :locals => { :elt => @elt }
end
def rss
@headers["Content-Type"] = "text/xml; charset=utf-8"
@elt = Elt.find(params[:id]) if @elt == nil
@@ -65,13 +65,13 @@
# :expires => Time.now + 360000 }
#flash[:notice] = 'Elt was successfully created.'
#redirect_to :action => 'top', :id => @elt.parent_id
#render_component(:action => 'show', :id => @elt.id )
- render :partial => 'elt', :locals => { :elt => @elt, :eltTop => false }
+ render :partial => '/elt/elt', :locals => { :elt => @elt, :eltTop => false }
else
flash[:notice] = 'Error'
- render :action => 'new'
+ render :controller => 'elt', :action => 'new'
end
end
def raw_elt
@mail = Elt.find(params[:id]).mail