On 12 May 2016 at 19:38, Elton Santos <
elton.me...@gmail.com> wrote:
> I really dont know how begin, I have a form in my view (solicit.html.erb)
> where do iterate in each elements, each element have a radio button, input
> field and a button for create. When click on button, generate a new
> portability with date save this. this is my code
>
>> <% if params[:search_func_register].present? %>
>> <h4><b>Results</b></h4>
>> <%= form_tag(@portability, name: 'form', method: :get) do %>
It is always a good idea to copy/paste the complete error message for
us to see, and in particular tell us which line of code it refers to.
I will try to guess, however. The error means that something is nil
that should not be. Is the error on the form_tag line? If so it
probably means that @portability is nil.
Colin