-
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
cd3eb8e
commit 80794cd
Showing
5 changed files
with
43 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,7 @@ | ||
class ProjectsController < ApplicationController | ||
|
||
def new | ||
@project = Project.new | ||
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 ProjectsHelper | ||
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,22 @@ | ||
<h1>Crear un nuevo proyecto</h1> | ||
|
||
<%= form_for @project do |f| %> | ||
<p> | ||
<%= f.label :name, 'Nombre' %><br /> | ||
<%= f.text_field :name %> | ||
</p> | ||
|
||
<p> | ||
<%= f.label :description, 'Descripción' %><br /> | ||
<%= f.text_area :description %> | ||
</p> | ||
|
||
<p> | ||
<%= f.label :start, 'Inicio del proyecto' %><br /> | ||
<%= f.date_select :start %> | ||
</p> | ||
|
||
<p> | ||
<%= f.submit 'Crear proyecto' %> | ||
</p> | ||
<% end %> |
8 changes: 8 additions & 0 deletions
8
3_rails/proyectos/test/functional/projects_controller_test.rb
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,8 @@ | ||
require 'test_helper' | ||
|
||
class ProjectsControllerTest < ActionController::TestCase | ||
# Replace this with your real tests. | ||
test "the truth" do | ||
assert true | ||
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,4 @@ | ||
require 'test_helper' | ||
|
||
class ProjectsHelperTest < ActionView::TestCase | ||
end |