Description:
update syntax of form_for to rails 3.2.8
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r392:81c559fd77c3 - - 1 file changed: 1 inserted, 1 deleted

@@ -1,20 +1,20
1 %h3 Message
1 %h3 Message
2
2
3 .message
3 .message
4 .stat
4 .stat
5 = "#{@message.sender.full_name} at #{@message.created_at}"
5 = "#{@message.sender.full_name} at #{@message.created_at}"
6 .body= simple_format(@message.body)
6 .body= simple_format(@message.body)
7
7
8 %h3 Your reply:
8 %h3 Your reply:
9 - = form_for 'r_message', nil, :url => { :action => 'reply'} do |f|
9 + = form_for 'r_message', :url => { :action => 'reply'} do |f|
10 = f.text_area :body, :rows => 5, :cols => 100
10 = f.text_area :body, :rows => 5, :cols => 100
11 = f.hidden_field :receiver_id, {:value => @message.sender_id }
11 = f.hidden_field :receiver_id, {:value => @message.sender_id }
12 = f.hidden_field :replying_message_id, {:value => @message.id }
12 = f.hidden_field :replying_message_id, {:value => @message.id }
13 = submit_tag "Post"
13 = submit_tag "Post"
14
14
15 %p
15 %p
16 If you do not want to reply, but want to hide this message from
16 If you do not want to reply, but want to hide this message from
17 console, you can
17 console, you can
18 = link_to "[hide]", :action => 'hide', :id => @message.id
18 = link_to "[hide]", :action => 'hide', :id => @message.id
19 this message. (This message will be marked as replied.)
19 this message. (This message will be marked as replied.)
20
20
You need to be logged in to leave comments. Login now