Ruby on Rails Thursday, May 12, 2016

On 12 May 2016 at 19:38, Elton Santos <elton.melo.santos@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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuOTc%3DG67t0%3DO7H9HNLCdtoKxLhbKg9L7nx%2BA5D0fVxNA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment