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

2016-03-06 Thread Colin Law
On 6 March 2016 at 09:14, Naveed Alam wrote: > Colin Law wrote in post #1181947: >> On 6 March 2016 at 08:00, Naveed Alam wrote: >>>@employee = Employee.find(params[:id]) >>> if request.post? and @rosterduty.save >>> flash[:notice] = t('flash7') >>> redirect_to :controller =>

[Rails] Re: Calling method from model create error

2016-03-06 Thread Naveed Alam
Colin Law wrote in post #1181947: > On 6 March 2016 at 08:00, Naveed Alam wrote: >>@employee = Employee.find(params[:id]) >> if request.post? and @rosterduty.save >> flash[:notice] = t('flash7') >> redirect_to :controller => "employee", :action => "add_rosterduty" >> end >