Skip to content

Commit ec6a805

Browse files
author
Theresa
committed
adjust seed data
1 parent 9af87f9 commit ec6a805

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/views/home/_exercises.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<div class="panel-body">
2424

2525
<div class="col-md-10">
26-
<%= exercise.description %>
26+
<%= @exercise.descriptions.first.text %>
2727
</div>
2828

2929
<div class="btn-group-vertical pull-right" role="group" aria-label="...">

db/seeds.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
ExerciseFile.create(main: true, content: "public class HelloWorld{ public static void main String[] args) { } }", path: '', solution: false, filetype: 'java', exercise: exercise1)
3030
Test.create(content: "public class HelloWorld{ public static void main String[] args) {System.out.println('Hello World.'); } }", rating: 5, feedback_message: "Es wird noch nicht 'Hello World' am Bildschrim ausgegeben!", exercise: exercise1, testing_framework: test_framework)
3131

32+
Description.create(text:"Schreibe ein Java Programm, das 'Hello World' am Bildschirm ausgibt.", language: 'de', exercise: exercise1)
33+
Description.create(text:"Write a Java program, which returns 'Hello World'.", language: 'en', exercise: exercise1)
3234

3335

3436
Rating.create(rating: 4, exercise: exercise1, user: user5)
@@ -43,6 +45,8 @@
4345
exercise1.labels << l2
4446
exercise1.labels << l3
4547

48+
exercise1.descriptions
49+
4650

4751
AccountLink.create(push_url: 'google.com/pushpush', account_name: 'account1000')
4852

0 commit comments

Comments
 (0)