view: remote_form_for: equals sign mandatory to print blocks and replace to form_for and use :remote => true and :as

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9571 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA committed 2012-04-29 02:43:42 +00:00
1 parent 49b28fca68
commit 4b2fc90431
3 files changed
+12 -7

No files matched your search

+4 -2
View File
@@ -32,10 +32,12 @@
</form>
<% end %>
<% remote_form_for(:relation, @relation,
<%= form_for @relation, {
:as => :relation, :remote => true,
:url => {:controller => 'issue_relations', :action => 'create', :issue_id => @issue},
:method => :post,
:complete => "Form.Element.focus('relation_issue_to_id');",
:html => {:id => 'new-relation-form', :style => (@relation ? '' : 'display: none;')}) do |f| %>
:html => {:id => 'new-relation-form', :style => (@relation ? '' : 'display: none;')}
} do |f| %>
<%= render :partial => 'issue_relations/form', :locals => {:f => f}%>
<% end %>