Impossível criar formulário na versão 0.44.1?

Daniela Feitosa danielafeitosa at colivre.coop.br
Thu Aug 1 10:22:09 BRT 2013


Oi,

On 31-07-2013 11:43, Rodrigo Souto wrote:
> Daniel,
> Tem como você (ou alguém do EITA) olhar o log no servidor e postar o
> erro? Consegui usar a funcionalidade normalmente no nosso servidor de
> testes que está com a 0.44.2. Apesar de ser a versão mais nova,
> teoricamente não deveria ter nenhuma diferença no plugin de forms.

O log do erro:
--------------------------------

A ActionView::TemplateError occurred in custom_forms_plugin_profile#show:

   undefined method `active_fields' for nil:NilClass
   On line #4 of plugins/custom_forms/views/shared/_form_submission.html.erb

     1:<% self.extend(CustomFormsPlugin::Helper) %>
     2:
     3:<% @form.fields.each do |field| %>
     4:<%= display_custom_field(field, @submission, f.object_name) %>
     5:<% end %>

     app/helpers/profile_helper.rb:4:in `display_field'
     config/plugins/custom_forms/lib/custom_forms_plugin/helper.rb:63:in `send'
     config/plugins/custom_forms/lib/custom_forms_plugin/helper.rb:63:in
`display_custom_field'
     plugins/custom_forms/views/shared/_form_submission.html.erb:4


--------------------------------

Por algum motivo, o "profile" tá send nil em:

app/helpers/profile_helper.rb


-- 
Daniela Soares Feitosa
Colivre - Cooperativa de Tecnologias Livres
http://www.Colivre.coop.br/
55 71 3331-2299/ 55 71 8165-1685



More information about the Noosfero-br mailing list