search for: s5cvth8h5jrz3nrrnvlbw1atqe2ktcn

Displaying 3 results from an estimated 3 matches for "s5cvth8h5jrz3nrrnvlbw1atqe2ktcn".

2008 Jul 17
5
.build method
I have gone to the api and have searched the internet and looked through the books that I have, but I am having trouble finding an explanation on what the .build method actually does and how it is used. I guess the best example is if I want to create a todo list application where I can create a new todo list and add to do items all at the same time. I would post to the todolist controller to
2008 Jul 17
2
Final Opinion :: Need final opinions on the best way to handle arrays in forms
Hi There, rails noob just trying to suss a few things out. So I have 2 tables. 1 called Posts and the other called comments. On one page I need to be able to edit both the information about the post and the attributes of each comment for that post. So here is what the array might look like: (Inside the params hash) "post" => [ {"id"=>28, "title" =>
2008 Jul 23
3
Validation method vs. After Save & Rollback
Hey Guys, Again, I am just learning Rails, so I am asking advice here. I have a model called Company which has many Owners. The Owners model indicates the name of the owner and their share (as a percentage) of the company. The total shares for any one company can not be more than 100%. So if I have 10 owners each with 10% of the company and I update one of the owners and set their share to 11%,