Skip to content
This repository was archived by the owner on Nov 13, 2020. It is now read-only.

Commit 30f327e

Browse files
committed
Properly name controllers, restrict to display only.
1 parent a3cb5c1 commit 30f327e

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

app/controllers/bespoke_controller.rb renamed to app/controllers/bespoke/posts_controller.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class BespokeController < ApplicationController
1+
class Bespoke::PostsController < ApplicationController
22
# GET /posts
33
# GET /posts.json
44
def index
@@ -15,6 +15,7 @@ def show
1515
render json: @post
1616
end
1717

18+
=begin
1819
# POST /posts
1920
# POST /posts.json
2021
def create
@@ -47,4 +48,5 @@ def destroy
4748
4849
head :no_content
4950
end
51+
=end
5052
end

app/controllers/idstyle_controller.rb renamed to app/controllers/idstyle/posts_controller.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class IdstyleController < ApplicationController
1+
class Idstyle::PostsController < ApplicationController
22
# GET /posts
33
# GET /posts.json
44
def index
@@ -15,6 +15,7 @@ def show
1515
render json: @post
1616
end
1717

18+
=begin
1819
# POST /posts
1920
# POST /posts.json
2021
def create
@@ -47,4 +48,5 @@ def destroy
4748
4849
head :no_content
4950
end
51+
=end
5052
end

app/controllers/urlstyle_controller.rb renamed to app/controllers/urlstyle/posts_controller.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class UrlstyleController < ApplicationController
1+
class Urlstyle::PostsController < ApplicationController
22
# GET /posts
33
# GET /posts.json
44
def index
@@ -15,6 +15,7 @@ def show
1515
render json: @post
1616
end
1717

18+
=begin
1819
# POST /posts
1920
# POST /posts.json
2021
def create
@@ -47,4 +48,5 @@ def destroy
4748
4849
head :no_content
4950
end
51+
=end
5052
end

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy