[ranch] 42: Rename index to draw.

https://svn.lrde.epita.fr/svn/ranch/trunk Index: ChangeLog from Nicolas Despr�s <nicolas.despres@gmail.com> Rename index to draw. * web/ranch/app/controllers/graph_form_controller.rb: The index request use the draw template. * web/ranch/app/views/graph_form/draw.rhtml: Rename to ... * web/ranch/app/views/graph_form/index.rhtml: ...that. graph_form_controller.rb | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: web/ranch/app/controllers/graph_form_controller.rb --- web/ranch/app/controllers/graph_form_controller.rb (revision 41) +++ web/ranch/app/controllers/graph_form_controller.rb (working copy) @@ -19,6 +19,7 @@ @revision[:stop] = @project.head_revision @revision[:start] = @revision[:stop] - DEFAULT_REVISION_RANGE @revision[:start] = 1 if @revision[:start] < 1 + render :action => 'draw' end def draw @@ -40,7 +41,6 @@ @revision = get_revision_range(params[:revision][:range]) if flash[:error].nil? @draw_on = true - render :action => 'index' else redirect_to(:action => 'index', :bench_id => @bench.id) end
participants (1)
-
Nicolas Despr�s