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

+3-1
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

+3-1
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

+3-1
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)