18 Oct '13, 3pm

をRails4で実装するには、っていう話なのですが・・

をRails4で実装するには、っていう話なのですが・・

The second part of the code builds a string of the form fields for that object so that we can insert them into the javascript function that will add them to the form when a link is clicked. It does this by calling the appropriate partial code, passing in the form builder. The only really new thing here is the :child_index we set. We do this so that we have something to refer to for creating the fields for the new question or answer. In the JavaScript we’ll replace the name of this with a unique value which will be based on the current time. That way, every time we create a new question or answer it will have a unique index so that it can be identified when we submit the form.

Full article: http://railscasts.com/episodes/197-nested-model-form-part...

Tweets

Bitcoin in Canada, Part 2: Interview with Antho...

bitcoinmagazine.com 16 Oct '13, 6pm

In the first part of this series , we discussed the Bitcoin Alliance of Canada, a Bitcoin association focused on the needs...

Tesla To Offer CHAdeMO Rapid Charging Adapter F...

cleantechnica.com 16 Oct '13, 10am

“If you want to enable Supercharging, you have to pay $2,400 before your Model S is delivered, or you can do it after rece...

On National Service – Part 2

alvinology.com 23 Oct '13, 5pm

Since my previous posts on National Service generated so much attention, I feel obliged to blog about the recent slew of n...