質問編集履歴
1
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,11 +8,15 @@
|
|
8
8
|
|
9
9
|
### 該当のソースコード
|
10
10
|
|
11
|
+
前提:インスタンス変数@hogeに"2"が代入済
|
12
|
+
|
13
|
+
|
14
|
+
|
11
15
|
sample.html.erb
|
12
16
|
|
13
17
|
```
|
14
18
|
|
15
|
-
<%= f.text_field :title , readonly: "#{ 'readonly' if @hoge == "
|
19
|
+
<%= f.text_field :title , readonly: "#{ 'readonly' if @hoge == "1"}" %>
|
16
20
|
|
17
21
|
```
|
18
22
|
|