Skip to content

Conversation

@annamm77
Copy link

@annamm77 annamm77 commented Apr 26, 2016

I'm happy that this works at all!!! I learned a lot about Rails (like - everything I know at this point) by doing this project. Good practice.

If I had more time, I'd like to go in and refactor/edit/streamline my code. But for now - I'm happy it works at all :)

Heroku: http://anna-tasks.herokuapp.com/

@task.save
redirect_to root_path
end
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The update_edit method looks good, but will look even better if you'll DRY your code.
you can move the ' @task = Task.find(params[:id]) ' => move before the 'if statement'
you can also move the :
@task.save
redirect_to root_path
out of the if statement, since you'll execute it anyway.

@TammyHer
Copy link

Your code is well written- Good job!
All my comments are suggestions that I hope you'll find useful.
Keep the good job :D You're awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants