SHARE
TWEET

Untitled

a guest Jan 20th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <%=f.text_field :due_date%>
  2.    
  3. def create
  4.       @task = Task.new(params[:task])
  5.        if @task.valid?
  6.           @task.due_date=params[:task][:due_date]
  7.           @task.save
  8.           redirect_to(calenders_path(:date=>@task.due_date,:task_name=>params[:task][:task_name]))
  9.       else
  10.          render :action=>"new"
  11.       end
  12. end
  13.    
  14. def create
  15.       @task = Task.new(params[:task])
  16.        if @task.save
  17.           redirect_to(calenders_path(:date=>@task.due_date,:task_name=>@task.task_name))
  18.        else
  19.           render :action=>"new"
  20.       end
  21. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top