Skip to content

Commit

Permalink
another day in the trenches- show all tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrencely committed Oct 5, 2014
1 parent 6c74aa0 commit c764465
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/controllers/tasks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ def new

def create
@task = Task.new task_params
if @task.category_id == @current_category
@task.save
if @task.save
redirect_to tasks_path
else
raise 'error'
end
Expand Down
6 changes: 3 additions & 3 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
Task.destroy_all
Partner.destroy_all

u1 = User.create(:name => 'Rebecca', :email => 'rebeccastyu@gmail.com', :password => 'papparich')
#u2 = User.create(:name => 'Eryn-Jane')
#u3 = User.create(:name => 'Lawrence')
u1 = User.create(:name => 'Sunni', :email => 'sunni@gmail.com', :password => 'sunnisunni')
u2 = User.create(:name => 'Eryn-Jane', :email => 'sunni@gmail.com', :password => 'sunnisunni')
u3 = User.create(:name => 'Lawrence', :email => 'lawrence@gmail.com', :password => 'lawrence')

c1 = Category.create(:heading => 'Studying')
c2 = Category.create(:heading => 'Prep for HSC')
Expand Down

0 comments on commit c764465

Please sign in to comment.