{"action":"created","issue":{"url":"https://api.github.com/repos/IIC2513-2015-1/syllabus/issues/19","labels_url":"https://api.github.com/repos/IIC2513-2015-1/syllabus/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/IIC2513-2015-1/syllabus/issues/19/comments","events_url":"https://api.github.com/repos/IIC2513-2015-1/syllabus/issues/19/events","html_url":"https://github.com/IIC2513-2015-1/syllabus/issues/19","id":77060084,"number":19,"title":"Nested Form - Creacion de dos modelos en el mismo formulario","user":{"login":"pvchaumier","id":6484353,"avatar_url":"https://avatars.githubusercontent.com/u/6484353?v=3","gravatar_id":"","url":"https://api.github.com/users/pvchaumier","html_url":"https://github.com/pvchaumier","followers_url":"https://api.github.com/users/pvchaumier/followers","following_url":"https://api.github.com/users/pvchaumier/following{/other_user}","gists_url":"https://api.github.com/users/pvchaumier/gists{/gist_id}","starred_url":"https://api.github.com/users/pvchaumier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pvchaumier/subscriptions","organizations_url":"https://api.github.com/users/pvchaumier/orgs","repos_url":"https://api.github.com/users/pvchaumier/repos","events_url":"https://api.github.com/users/pvchaumier/events{/privacy}","received_events_url":"https://api.github.com/users/pvchaumier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-16T15:18:24Z","updated_at":"2015-05-18T01:37:22Z","closed_at":null,"body":"Hola todos,\r\n\r\nEncontré muchas dificultades para hacer un nested form (que permite de crear dos modelos en el mismo tiempo). Finalmente encontré este [articulo](http://www.amooma.de/screencasts/2015-01-22-nested_forms-rails-4.2/) que explica de manera simple y facil como hacer con rails 4.2\r\n\r\nEspero que va a ayudar ustedes !\r\n\r\nSaludos !\r\n"},"comment":{"url":"https://api.github.com/repos/IIC2513-2015-1/syllabus/issues/comments/102887614","html_url":"https://github.com/IIC2513-2015-1/syllabus/issues/19#issuecomment-102887614","issue_url":"https://api.github.com/repos/IIC2513-2015-1/syllabus/issues/19","id":102887614,"user":{"login":"pvchaumier","id":6484353,"avatar_url":"https://avatars.githubusercontent.com/u/6484353?v=3","gravatar_id":"","url":"https://api.github.com/users/pvchaumier","html_url":"https://github.com/pvchaumier","followers_url":"https://api.github.com/users/pvchaumier/followers","following_url":"https://api.github.com/users/pvchaumier/following{/other_user}","gists_url":"https://api.github.com/users/pvchaumier/gists{/gist_id}","starred_url":"https://api.github.com/users/pvchaumier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pvchaumier/subscriptions","organizations_url":"https://api.github.com/users/pvchaumier/orgs","repos_url":"https://api.github.com/users/pvchaumier/repos","events_url":"https://api.github.com/users/pvchaumier/events{/privacy}","received_events_url":"https://api.github.com/users/pvchaumier/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T01:37:22Z","updated_at":"2015-05-18T01:37:22Z","body":"Normalmente se hace automáticamente. Solo agregues como en el tutorial un preference_attributes: .. como hiciste. Cuidado, tienes dos veces :cultura en tus parámetros para preference_attributes.\r\n\r\nLo que puedes tratar si no funciona, es de crear un nuevo proyecto, hacer todo como en la noticia pero con tus nombres/modelos para entender como funciona y después de adaptar en tu proyecto. Es lo que hice y funciona bien.\r\n\r\nSi tienes siempre problemas, puedes dar tus modelos para que trato de ayudarte ?\r\n\r\nps : para el formato, Github suporta código (y diferente lenguajes, javascript...), puedes ver como hacer [aqui](https://guides.github.com/features/mastering-markdown/)"}}