Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MIS21_Final_Project
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
Chanelle Lunod
MIS21_Final_Project
Commits
30fa2ca2
Commit
30fa2ca2
authored
Jul 16, 2018
by
Chanelle Lunod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit
parent
bbd58e73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
10 deletions
+1
-10
transactions_controller.rb
app/controllers/transactions_controller.rb
+1
-4
routes.rb
config/routes.rb
+0
-6
No files found.
app/controllers/transactions_controller.rb
View file @
30fa2ca2
...
@@ -6,10 +6,7 @@ class TransactionsController < ApplicationController
...
@@ -6,10 +6,7 @@ class TransactionsController < ApplicationController
end
end
def
display
def
display
if
@product
.
status
==
active
@product
=
Product
.
find_by
(
id:
params
[
:id
])
Products
.
find_by
(
id:
[
pramas
[
:id
])
else
#dont display
end
end
def
new
def
new
...
...
config/routes.rb
View file @
30fa2ca2
...
@@ -5,9 +5,6 @@ Rails.application.routes.draw do
...
@@ -5,9 +5,6 @@ Rails.application.routes.draw do
resources
:products
resources
:products
root
to:
'products#index'
,
as: :authenticated_admin_user_root
root
to:
'products#index'
,
as: :authenticated_admin_user_root
end
end
unauthenticated
:admin_user
do
root
to:
'publics#index'
,
as: :unauthenticated_admin_user_root
end
end
end
devise_for
:users
devise_for
:users
...
@@ -19,9 +16,6 @@ Rails.application.routes.draw do
...
@@ -19,9 +16,6 @@ Rails.application.routes.draw do
end
end
root
to:
'transactions#index'
,
as: :authenticated_user_root
root
to:
'transactions#index'
,
as: :authenticated_user_root
end
end
unauthenticated
:user
do
root
to:
'publics#index'
,
as: :unauthenticated_user_root
end
end
end
root
to:
'publics#index'
root
to:
'publics#index'
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