diff options
| author | Teddy Wing | 2017-07-07 18:25:48 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2017-07-12 11:06:03 +0200 | 
| commit | c7ceb38801b853154cdae31672ff2c105c8b191f (patch) | |
| tree | 4fa3d8c5d1a6ed3c3ffd9af9655b5fadb5ee6eb1 /app/controllers/referential_lines_controller.rb | |
| parent | a6a3122bf1d2c2f6fc6b0f27b25b14da16a9b976 (diff) | |
| download | chouette-core-c7ceb38801b853154cdae31672ff2c105c8b191f.tar.bz2 | |
Remove ReferentialLines#index
Delete this route and associated template files. Wasn't sure if using
`exclude:` in the routes file was the best way to do this, as I'm not
sure if there are other routes we want to exclude from here also.
I visited the page because I'm migrating templates to the new table
builder helper and this one uses table builder. Upon visiting the page,
it looked pretty wonky, and after consulting with Jean-Paul and Luc, it
turns out this page isn't used any more because the table of
`Chouette::Line`s rendered there is now instead displayed on the
Referentials#show page, obviating the need for this page.
Refs #3479
Diffstat (limited to 'app/controllers/referential_lines_controller.rb')
| -rw-r--r-- | app/controllers/referential_lines_controller.rb | 12 | 
1 files changed, 0 insertions, 12 deletions
| diff --git a/app/controllers/referential_lines_controller.rb b/app/controllers/referential_lines_controller.rb index 4b4a822b4..fe81bee12 100644 --- a/app/controllers/referential_lines_controller.rb +++ b/app/controllers/referential_lines_controller.rb @@ -10,18 +10,6 @@ class ReferentialLinesController < ChouetteController    belongs_to :referential -  def index -    @hide_group_of_line = referential.group_of_lines.empty? -    index! do |format| -      format.html { -        if collection.out_of_bounds? -          redirect_to params.merge(:page => 1) -        end -        build_breadcrumb :index -      } -    end -  end -    def show      @routes = resource.routes | 
