-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
433fddd
commit 9a180ce
Showing
4 changed files
with
27 additions
and
17 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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
<%= form_for(@step) do |f| %> | ||
|
||
<div class="field"> | ||
<div class="form-group"> | ||
<%= f.label :name %><br> | ||
<%= f.text_field :name %> | ||
<%= f.text_field :name, class: "form-control" %> | ||
</div> | ||
<div class="field"> | ||
<div class="form-group"> | ||
<%= f.label :body %><br> | ||
<%= f.text_area :body %> | ||
<%= f.text_area :body, class: "form-control" %> | ||
</div> | ||
<div class="field"> | ||
<div class="form-group"> | ||
<%= f.label :pdf_url %><br> | ||
<%= f.text_field :pdf_url %> | ||
<%= f.text_field :pdf_url, class: "form-control" %> | ||
</div> | ||
<div class="actions"> | ||
<%= f.submit %> | ||
|
||
<div class="form-group"> | ||
<%= f.submit "Submit", class: "btn btn-primary btn-lg" %> | ||
</div> | ||
<% 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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
<h1>Editing Step</h1> | ||
|
||
<%= render 'form' %> | ||
<div style="margin: 0 auto; width: 50%; "> | ||
<div style="text-align: center;"> | ||
<h1>Editing Step</h1> | ||
<%= render 'form' %> | ||
</div> | ||
</div> | ||
|
||
<%= link_to 'Show', @step %> | | ||
<%= link_to 'Back', steps_path %> | ||
<%#= link_to 'Show', @step %> | ||
<%#= link_to 'Back', steps_path %> |
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
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
User.create!(email: "[email protected]", password: "admin123", name: "Ronaldo") | ||
|
||
Category.create!(name: "Game") | ||
Category.create!(name: "Ruby Language") | ||
Category.create!(name: "PHP Language") | ||
Category.create!(name: "Ruby on Rails Framework") | ||
Category.create!(name: "Ruby") | ||
Category.create!(name: "PHP") | ||
Category.create!(name: "Ruby on Rails") | ||
|