Commit e9bffd387f1593a8c43fb96d5e9f2d3143a736c5
Exists in
master
and in
29 other branches
Merge branch 'custom_form-rails3' into 'master'
More fixes for custom forms plugin migration to rails 3 A couple of bugs in custom forms plugin on rails 3 I found while testing another feature, see commit message. See merge request !409
Showing
5 changed files
with
5 additions
and
7 deletions
Show diff stats
plugins/custom_forms/lib/custom_forms_plugin/text_field.rb
plugins/custom_forms/views/custom_forms_plugin_myprofile/_form.html.erb
plugins/custom_forms/views/custom_forms_plugin_myprofile/custom_forms_plugin/_select_field.html.erb
... | ... | @@ -27,7 +27,7 @@ |
27 | 27 | </tr> |
28 | 28 | </tfoot> |
29 | 29 | <tbody class='field-list'> |
30 | - <% f.fields_for :alternatives do |builder| %> | |
30 | + <%= f.fields_for :alternatives do |builder| %> | |
31 | 31 | <%= render partial_for_class(builder.object.class), :f => builder %> |
32 | 32 | <% end %> |
33 | 33 | </tbody> | ... | ... |
plugins/custom_forms/views/custom_forms_plugin_profile/show.html.erb
plugins/custom_forms/views/tasks/custom_forms_plugin/_membership_survey_accept_details.html.erb
1 | 1 | <% @form = CustomFormsPlugin::Form.find(task.form_id) %> |
2 | -<% @submission = CustomFormsPlugin::Submission.new(:form_id => @form.id, :profile_id => user.id) %> | |
2 | +<% @submission = CustomFormsPlugin::Submission.new(:form => @form, :profile => user) %> | |
3 | 3 | |
4 | 4 | <h2><%= @form.name %></h2> |
5 | 5 | <p><%= @form.description %></p> |
... | ... | @@ -11,6 +11,6 @@ |
11 | 11 | <% end %> |
12 | 12 | <% end %> |
13 | 13 | |
14 | -<% f.fields_for :submission do |fi| %> | |
14 | +<%= f.fields_for :submission do |fi| %> | |
15 | 15 | <%= render :partial => 'shared/form_submission', :locals => {:f => fi} %> |
16 | 16 | <% end %> | ... | ... |