Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start on entries controller and views
- Loading branch information
1 parent
ba4a308
commit b84b83f
Showing
6 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
class EntriesController < ApplicationController | ||
|
||
def new | ||
end | ||
|
||
# def create | ||
# @entry = current_user.entries.build(params[:entry]) | ||
# if @entry.save | ||
# flash[:success] = "Entry created!" | ||
# redirect_to root_path | ||
# else | ||
# render 'pages/home' | ||
# end | ||
# end | ||
|
||
def destroy | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
module EntriesHelper | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h1>Entries#create</h1> | ||
<p>Find me in app/views/entries/create.html.erb</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h1>Entries#destroy</h1> | ||
<p>Find me in app/views/entries/destroy.html.erb</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
= form_for @entry do |f| | ||
-# = render 'shared/error_messages', :object => f.object | ||
.word | ||
= f.label :word | ||
= f.text_field :word | ||
.definition | ||
= f.label :definition | ||
= f.text_area :definition | ||
.actions | ||
= f.submit "Add to dictionary" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-# Shared partial goes here |