Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
blog
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
mis-21-2018-intersession
rails
blog
Commits
86e5a595
Commit
86e5a595
authored
Jul 02, 2018
by
John Noel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created Posts controller and views
parent
42d4601a
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
29 additions
and
0 deletions
+29
-0
posts.coffee
app/assets/javascripts/posts.coffee
+3
-0
posts.scss
app/assets/stylesheets/posts.scss
+3
-0
posts_controller.rb
app/controllers/posts_controller.rb
+13
-0
posts_helper.rb
app/helpers/posts_helper.rb
+2
-0
edit.html.erb
app/views/posts/edit.html.erb
+2
-0
index.html.erb
app/views/posts/index.html.erb
+2
-0
new.html.erb
app/views/posts/new.html.erb
+2
-0
show.html.erb
app/views/posts/show.html.erb
+2
-0
No files found.
app/assets/javascripts/posts.coffee
0 → 100644
View file @
86e5a595
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
app/assets/stylesheets/posts.scss
0 → 100644
View file @
86e5a595
// Place all the styles related to the Posts controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
app/controllers/posts_controller.rb
0 → 100644
View file @
86e5a595
class
PostsController
<
ApplicationController
def
index
end
def
show
end
def
new
end
def
edit
end
end
app/helpers/posts_helper.rb
0 → 100644
View file @
86e5a595
module
PostsHelper
end
app/views/posts/edit.html.erb
0 → 100644
View file @
86e5a595
<h1>
Posts#edit
</h1>
<p>
Find me in app/views/posts/edit.html.erb
</p>
app/views/posts/index.html.erb
0 → 100644
View file @
86e5a595
<h1>
Posts#index
</h1>
<p>
Find me in app/views/posts/index.html.erb
</p>
app/views/posts/new.html.erb
0 → 100644
View file @
86e5a595
<h1>
Posts#new
</h1>
<p>
Find me in app/views/posts/new.html.erb
</p>
app/views/posts/show.html.erb
0 → 100644
View file @
86e5a595
<h1>
Posts#show
</h1>
<p>
Find me in app/views/posts/show.html.erb
</p>
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