Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Medication < ActiveRecord::Base
- end
- @medication = Medication.first
- @medication.name = "Prozac"
- @medication.save
- @medication.potency
- # --> NoMethodError: undefined method `potency' for #<Medication:0x103926db0>
- @medication = Medication.find_by_name("Prozac")
Add Comment
Please, Sign In to add comment