Skip to content

Instantly share code, notes, and snippets.

@dohoonk
Created February 3, 2016 19:42
Show Gist options
  • Select an option

  • Save dohoonk/a6b8918e6438d58e6053 to your computer and use it in GitHub Desktop.

Select an option

Save dohoonk/a6b8918e6438d58e6053 to your computer and use it in GitHub Desktop.
codecore

bin/rails c "question".pluralize

bin/rails generate questions

make sure you can access the page

get "/questions/new" => "questions#new", as: :new_questions

you dont have to hard code the path by giving it a helpermethod

bin/rails g model product name:string description:text price:float

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