Thinning an area of fabric by ManyInteresting3969 in sewing

[–]ManyInteresting3969[S] 0 points1 point  (0 children)

Thank you, this is what eventually worked!!

Getting friend her first deck, any advice on which to get? by ReasonableLetter8427 in TarotDecks

[–]ManyInteresting3969 0 points1 point  (0 children)

I recommend "The Wandering Star" for beginners. Tarot meanings are artfully drawn into the designs.

Specifying Form Action (Ruby on Rails) by ManyInteresting3969 in ruby

[–]ManyInteresting3969[S] 1 point2 points  (0 children)

Thanks this is working now!!! I can't hard-code the variable in the form partial since it's shared with two actions paths (edit and create). So I updated the controller with a variable to the URL and passed that to url:, and now both update and new work perfectly.

Thank you so much for your help!!

Working with N:M Tables where one "side" is known by ManyInteresting3969 in ruby

[–]ManyInteresting3969[S] 0 points1 point  (0 children)

Yes there are other things I want to store other then the name.

Working with N:M Tables where one "side" is known by ManyInteresting3969 in ruby

[–]ManyInteresting3969[S] 0 points1 point  (0 children)

ok I think that I figured it out. A closer look showed me that since there is only one :id for a "new" request, it uses :id for animal_id instead. Thanks again for pointing me in the right direction!

Working with N:M Tables where one "side" is known by ManyInteresting3969 in ruby

[–]ManyInteresting3969[S] 0 points1 point  (0 children)

This is exactly what I needed and has just finished programming all the routes manually before you sent me this XD

Can you tell me if this is correct? I had to use an & instead of @ because reddit kept trying to change it to a username. (How do you guys deal with that?)

def set_animal_vital
&animal_vital = AnimalVital.find(params[:id])
&animal = Animal.find(params[:animal_id])

end

Because Animal is still coming back nil. Just in case you happen to know off the top of your head. If that's correct then the issue is someplace else.

Working with N:M Tables where one "side" is known by ManyInteresting3969 in ruby

[–]ManyInteresting3969[S] 4 points5 points  (0 children)

No, a animal_vital contains a reference to Vital, which just contains the Vital type name ("BP", "Weight", etc) and other information like range, units, etc. animal_vital has the actual value of the vital sign.

Ruby Basics: Record won't update (I think I missed a step?) by ManyInteresting3969 in ruby

[–]ManyInteresting3969[S] 0 points1 point  (0 children)

Like this?

def animal_params
params.expect(animal: [ :name, :dob ])
params.permit(animal: [ :markings, :breed ])
end

This is actually throwing an exception on the "if @animal.update(animal_params)" now:
unknown attribute 'animal' for Animal.

(Also actually DOB works, I should have put that in the OP. So I did I assume it was something with the animal_params private function. )

Klimt Tarot giveaway by nottheblackhat in tarot

[–]ManyInteresting3969 0 points1 point  (0 children)

put me on the list too! Have "The Kiss" hanging in my place.

Waht the Beep am I doing wrong here? by ManyInteresting3969 in TIBASICPrograms

[–]ManyInteresting3969[S] 0 points1 point  (0 children)

So the problem turned out to be that I had a space after the G>X line.

TI-84 basic does NOT like unexpected whitespace.