Ruby on Rails Sunday, March 6, 2016

On 6 March 2016 at 12:32, Naveed Alam <lists@ruby-forum.com> wrote:
>> I don't see that it is related to this problem, but I notice from the
>> log that you are doing a GET on add_rosterduty when I think it should
>> be a post. Also it seems a bit odd that you make a new RosterDuty and
>> save it without setting any data in it. Again though, that is not the
>> cause of the problem you are seeing at the moment.
>>
>> Colin
>
> It also show error in form may be bcoz of this line

I suggest concentrating on one error at a time. Fix the other one
then move on to the next.

Colin

>
> my link is like this: http://localhost:7524/employee/add_rosterduty/2
>
> <%= a.hidden_field :employee_id, :value => params[:id] %>
>
> Error is:
>
> Called id for nil, which would mistakenly be 4 -- if you really wanted
> the id of nil, use object_id
> Extracted source (around line #14):
>
> 11: <%=render_breadcrumbs%>
> 12: </div>
> 13:
> 14: <% form_for(@rosterduty) do |a| %>
> 15: <%= error_messages_for :rosterduty %>
> 16: <div id="admission1_form">
> 17:
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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/084e7a6e97c3ccec972b1e2e1b73ccfc%40ruby-forum.com.
> For more options, visit https://groups.google.com/d/optout.

--
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%3D0gLsEdZLxZ7pLg_WBFtXXbtL5RwLM%3DYewRx-XZ%2Bo_vD-z4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment