Skip to content

Commit e52a5bb

Browse files
committed
changes es6 path to example
1 parent ce5172b commit e52a5bb

File tree

9 files changed

+8
-7
lines changed

9 files changed

+8
-7
lines changed

app/controllers/es6_controller.rb renamed to app/controllers/example_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class Es6Controller < ApplicationController
1+
class ExampleController < ApplicationController
22
def index
33
end
44

File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<h1>Remote vanilla ES6</h1>
22
<h4>File: remote.js.es6</h4>
33

4-
<%= link_to "Execute remote.js.es6", remote_es6_index_path, remote: true %>
4+
<%= link_to "Execute remote.js.es6", remote_example_index_path, remote: true %>
55
<br/>
66
<br/>
77
<div id="remote-es6"></div>

app/views/layouts/application.html.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
</head>
99
<body>
1010

11-
<%= link_to "Asset Vanilla ES6", asset_vanilla_es6_es6_index_path %> |
12-
<%= link_to "Inlne Vanilla ES6", inline_vanilla_es6_es6_index_path %> |
13-
<%= link_to "Remote Vanilla ES6", remote_vanilla_es6_es6_index_path %>
11+
<%= link_to "Asset Vanilla ES6", asset_vanilla_es6_example_index_path %> |
12+
<%= link_to "Inlne Vanilla ES6", inline_vanilla_es6_example_index_path %> |
13+
<%= link_to "Remote Vanilla ES6", remote_vanilla_es6_example_index_path %>
1414

1515
<%= yield %>
1616

config/routes.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Rails.application.routes.draw do
2-
resources :es6 do
2+
resources :example do
33
collection do
44
get 'asset_vanilla_es6'
55
get 'inline_vanilla_es6'
@@ -11,7 +11,7 @@
1111
# See how all your routes lay out with "rake routes".
1212

1313
# You can have the root of your site routed with "root"
14-
root 'es6#index'
14+
root 'example#index'
1515

1616
# Example of regular route:
1717
# get 'products/:id' => 'catalog#view'

features/support/env.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,4 @@
5656
# See https://github.com/cucumber/cucumber-rails/blob/master/features/choose_javascript_database_strategy.feature
5757
Cucumber::Rails::Database.javascript_strategy = :truncation
5858

59+
Capybara.javascript_driver = :poltergeist

0 commit comments

Comments
 (0)