diff options
Diffstat (limited to 'app/views/comment')
-rw-r--r-- | app/views/comment/_comment_form.html.erb (renamed from app/views/comment/_comment_form.rhtml) | 2 | ||||
-rw-r--r-- | app/views/comment/_single_comment.html.erb (renamed from app/views/comment/_single_comment.rhtml) | 0 | ||||
-rw-r--r-- | app/views/comment/new.html.erb (renamed from app/views/comment/new.rhtml) | 0 | ||||
-rw-r--r-- | app/views/comment/preview.html.erb (renamed from app/views/comment/preview.rhtml) | 2 |
4 files changed, 2 insertions, 2 deletions
diff --git a/app/views/comment/_comment_form.rhtml b/app/views/comment/_comment_form.html.erb index d834b5b90..b78532768 100644 --- a/app/views/comment/_comment_form.rhtml +++ b/app/views/comment/_comment_form.html.erb @@ -1,4 +1,4 @@ -<% form_for(:comment, @comment, :url => { :controller => "comment", :action => "new", :type => "request" }, :html => { :id => 'comment_form' } ) do |f| %> +<%= form_for(@comment, :as => :comment, :url => { :controller => "comment", :action => "new", :type => "request" }, :html => { :id => 'comment_form' } ) do |f| %> <p> <%= f.text_area :body, :rows => 10, :cols => 55 %> </p> diff --git a/app/views/comment/_single_comment.rhtml b/app/views/comment/_single_comment.html.erb index 421a9d4ba..421a9d4ba 100644 --- a/app/views/comment/_single_comment.rhtml +++ b/app/views/comment/_single_comment.html.erb diff --git a/app/views/comment/new.rhtml b/app/views/comment/new.html.erb index 578732cdb..578732cdb 100644 --- a/app/views/comment/new.rhtml +++ b/app/views/comment/new.html.erb diff --git a/app/views/comment/preview.rhtml b/app/views/comment/preview.html.erb index 702bd9a9b..cd966e6a5 100644 --- a/app/views/comment/preview.rhtml +++ b/app/views/comment/preview.html.erb @@ -1,6 +1,6 @@ <% @title = _("Preview new annotation on '{{info_request_title}}'",:info_request_title=>h(@info_request.title)) %> -<% form_for(:comment, @comment, :html => { :id => 'preview_form' }, :url => { :controller => "comment", :action => "new", :type => "request" } ) do |f| %> +<%= form_for(@comment, :html => { :id => 'preview_form' }, :url => { :controller => "comment", :action => "new", :type => "request" } ) do |f| %> <h1><%= _('Now preview your annotation') %></h1> |