Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialVlad Dragomir
5,535 PointsI've added "@model IssueReporter.Models.Issue" on top of the code snippet based on the request. Why isn't it working?
With this small change (see @model IssueReporter.Models.Issue on top of the snippet), the code should function using this model. The error "Bummer:Did you include the model directive?" keeps coming up. What gives?
@model IssueReporter.Models.Issue
@{
ViewBag.Title = "Report an Issue";
}
<h2>@ViewBag.Title</h2>
@using (Html.BeginForm())
{
<div>
@Html.Label("Name")
@Html.TextBox("Name")
</div>
<div>
@Html.Label("Email")
@Html.TextBox("Email")
</div>
<div>
@Html.Label("DepartmentId")
@Html.TextBox("DepartmentId")
</div>
<div>
@Html.Label("Severity")
@Html.TextBox("Severity")
</div>
<div>
@Html.Label("Reproducible")
@Html.TextBox("Reproducible")
</div>
<div>
@Html.Label("DescriptionOfProblem")
@Html.TextArea("DescriptionOfProblem")
</div>
<button type="submit">Save</button>
}
1 Answer
Steven Parker
231,198 PointsI just pasted your code directly into the challenge, and it passed task 1.
Try again, perhaps after restarting your browser.
Vlad Dragomir
5,535 PointsVlad Dragomir
5,535 PointsI tried it and it passed on Google Chrome. On Edge, this fails.
Steven Parker
231,198 PointsSteven Parker
231,198 PointsYou might want to report technical issues directly to the staff. See the instructions on the Support page,
Vlad Dragomir
5,535 PointsVlad Dragomir
5,535 PointsThank you, Steven!
You've been of great help :)