Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Precision is all decimals, scale is to the right of the decimal
- Partial! Takes in only one partial instead of all
- .pluralize(1) will be singular, anything else will be plural
- 1. Make it work in the simplest way (this may be writing the logic in the view and checking the json in the browser)
- 2. Make a method in the model to clean up the controller or view
- 3. Call it in the api controller or api view
- 4. Follow the data that is passed to the client (check the json in the browser)
- 5.Find where it is access the keys from the json hash (in this case, your client view)
- if you need to get rid of bad attributes, `Recipe.where(directions: nil).destroy_all` in rails console
Add Comment
Please, Sign In to add comment