Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a bite/step to an individual peach/goal #13

Open
jendiamond opened this issue Jan 9, 2016 · 0 comments
Open

Add a bite/step to an individual peach/goal #13

jendiamond opened this issue Jan 9, 2016 · 0 comments

Comments

@jendiamond
Copy link
Member

Add a button that lets you add a new bite/step

Add a new model rails g model step bite:string peach:references
step_controller.rb

  def complete
    @todo_item.update_attribute(:completed_at, Time.now)
    redirect_to @todo_list, notice: "Todo item completed"
  end

Say your Goal is Quit Smoking

You may have individual steps to help you do that.
A step is referred to as a bite.

A bite could be something like:
[ ] Throw away all my ashtrays
[ ] Convince my spouse to quit with me
[ ] Clean out my house of anything pertaining to cigarettes
[ ] Make a donation to the Lung Cancer society

Each step you take moves you futher towards your goal.

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

No branches or pull requests

2 participants