>> Colin
>
> Thanks colin,
>
> I moved the method up in controller but now it gives me the error:
>
> NoMethodError in Employee#add_rosterduty
>
> Showing app/views/employee/add_rosterduty.html.erb where line #14
> raised:
>
> undefined method `roster_duties_path' for #<ActionView::Base:0x19dd9fc0>
> Extracted source (around line #14):
>
> 11:     <%=render_breadcrumbs%>
> 12:   </div>
> 13:
> 14:   <% form_for(@rosterduties) do |a| %>
> 15:     <%= a.error_messages%>
> 16:     <div id="admission1_form">

Finally it worked, added map.rosources roster_duties routes


Thanks again Colin

-- 
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+unsubscr...@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/8eac2b4519eb76e7f24cd756a49ae46f%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to