Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
marketParser
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nazarf
marketParser
Commits
81767f8c
Commit
81767f8c
authored
Mar 31, 2020
by
kolosfed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create MainController with start page action
parent
e5876a82
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
16 deletions
+20
-16
application.js
app/assets/javascripts/application.js
+1
-1
cable.js
app/assets/javascripts/cable.js
+0
-13
.keep
app/assets/javascripts/channels/.keep
+0
-0
application.css
app/assets/stylesheets/application.css
+1
-1
main_controller.rb
app/controllers/main_controller.rb
+4
-0
start_page.html.haml
app/views/main/start_page.html.haml
+2
-0
routes.rb
config/routes.rb
+3
-1
main_controller_test.rb
test/controllers/main_controller_test.rb
+9
-0
No files found.
app/assets/javascripts/application.js
View file @
81767f8c
...
@@ -12,4 +12,4 @@
...
@@ -12,4 +12,4 @@
//
//
//= require rails-ujs
//= require rails-ujs
//= require turbolinks
//= require turbolinks
//= require_tree .
//= require_tree .
/application
app/assets/javascripts/cable.js
deleted
100644 → 0
View file @
e5876a82
// Action Cable provides the framework to deal with WebSockets in Rails.
// You can generate new channels where WebSocket features live using the `rails generate channel` command.
//
//= require action_cable
//= require_self
//= require_tree ./channels
(
function
()
{
this
.
App
||
(
this
.
App
=
{});
App
.
cable
=
ActionCable
.
createConsumer
();
}).
call
(
this
);
app/assets/javascripts/channels/.keep
deleted
100644 → 0
View file @
e5876a82
app/assets/stylesheets/application.css
View file @
81767f8c
...
@@ -10,6 +10,6 @@
...
@@ -10,6 +10,6 @@
* files in this directory. Styles in this file should be added after the last require_* statement.
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
* It is generally better to create a new file per style scope.
*
*
*= require_tree .
*= require_tree .
/application
*= require_self
*= require_self
*/
*/
app/controllers/main_controller.rb
0 → 100644
View file @
81767f8c
class
MainController
<
ApplicationController
def
start_page
end
end
app/views/main/start_page.html.haml
0 → 100644
View file @
81767f8c
%h1
Main#start_page
%p
Find me in app/views/main/start_page.html.haml
config/routes.rb
View file @
81767f8c
Rails
.
application
.
routes
.
draw
do
Rails
.
application
.
routes
.
draw
do
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
root
'main#start_page'
end
end
test/controllers/main_controller_test.rb
0 → 100644
View file @
81767f8c
require
'test_helper'
class
MainControllerTest
<
ActionDispatch
::
IntegrationTest
test
"should get start_page by root path"
do
get
root_url
assert_response
:success
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment