diff --git a/app/views/documents/edit.html.erb b/app/views/documents/edit.html.erb index 1549116..87e08e1 100644 --- a/app/views/documents/edit.html.erb +++ b/app/views/documents/edit.html.erb @@ -1,6 +1,6 @@
<%= submit_tag l(:button_save) %>
<% end %> diff --git a/app/views/enumerations/edit.html.erb b/app/views/enumerations/edit.html.erb index 59a7aa6..a7d03ce 100644 --- a/app/views/enumerations/edit.html.erb +++ b/app/views/enumerations/edit.html.erb @@ -1,6 +1,6 @@ <%= title [l(@enumeration.option_name), enumerations_path], @enumeration.name %> -<%= labelled_form_for :enumeration, @enumeration, :url => enumeration_path(@enumeration), :html => {:method => :put} do |f| %> +<%= labelled_form_for :enumeration, @enumeration, :url => enumeration_path(@enumeration), :html => {:method => :put, :multipart => true} do |f| %> <%= render :partial => 'form', :locals => {:f => f} %> <%= submit_tag l(:button_save) %> <% end %> diff --git a/app/views/enumerations/new.html.erb b/app/views/enumerations/new.html.erb index 1714e8e..dcd9a49 100644 --- a/app/views/enumerations/new.html.erb +++ b/app/views/enumerations/new.html.erb @@ -1,6 +1,6 @@ <%= title [l(@enumeration.option_name), enumerations_path], l(:label_enumeration_new) %> -<%= labelled_form_for :enumeration, @enumeration, :url => enumerations_path do |f| %> +<%= labelled_form_for :enumeration, @enumeration, :url => enumerations_path, :html => {:multipart => true} do |f| %> <%= f.hidden_field :type %> <%= render :partial => 'form', :locals => {:f => f} %> <%= submit_tag l(:button_create) %> diff --git a/app/views/groups/_general.html.erb b/app/views/groups/_general.html.erb index c48f54c..9cc5be6 100644 --- a/app/views/groups/_general.html.erb +++ b/app/views/groups/_general.html.erb @@ -1,4 +1,4 @@ -<%= labelled_form_for @group, :url => group_path(@group) do |f| %> +<%= labelled_form_for @group, :url => group_path(@group), :html => {:multipart => true} do |f| %> <%= render :partial => 'form', :locals => { :f => f } %> <%= submit_tag l(:button_save) %> <% end %> diff --git a/app/views/groups/new.html.erb b/app/views/groups/new.html.erb index 2a7f003..c643161 100644 --- a/app/views/groups/new.html.erb +++ b/app/views/groups/new.html.erb @@ -1,6 +1,6 @@ <%= title [l(:label_group_plural), groups_path], l(:label_group_new) %> -<%= labelled_form_for @group do |f| %> +<%= labelled_form_for @group, :html => {:multipart => true} do |f| %> <%= render :partial => 'form', :locals => { :f => f } %><%= f.submit l(:button_create) %> diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb index ca8a144..44c75f2 100644 --- a/app/views/my/account.html.erb +++ b/app/views/my/account.html.erb @@ -14,7 +14,7 @@ <%= labelled_form_for :user, @user, :url => { :action => "account" }, :html => { :id => 'my_account_form', - :method => :post } do |f| %> + :method => :post, :multipart => true } do |f| %>