[Rails] Re: Re: Re: Re: Re: Re: Re: Re: Calling method from model create error

2016-03-07 Thread Naveed Alam
>> 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 # > Extracted source (around l

[Rails] Re: Re: Re: Re: Re: Re: Re: Re: Calling method from model create error

2016-03-07 Thread Naveed Alam
> Finally, your controller is much too large and complex. I am not > going to wade through it trying to refactor it for you, but it is not > suitable for purpose as it is. Likely large amounts of the code can > be delegated to models, for example. > > Colin Thanks colin, I moved the method up i