search for: semantic_fields_for

Displaying 4 results from an estimated 4 matches for "semantic_fields_for".

2011 Oct 26
6
Add an index to a form
...mail %> </li> <% end %> I''m having some troubles with the first line: <%= fields_for "user[invites_attributes][]", invite do |i| %> What is the correct usage of that? I''m using formtastic and when I made that line but with my fields <%= f.semantic_fields_for ("user[children_attributes][]", user) do |fes| %> and I get this error ............... unexpected '','', expecting '')'' I hope someone can help Thanks in advance -- You received this message because you are subscribed to the Google Groups &quot...
2010 Jan 16
3
Formtastic and Access to Variables of Nested Model
So I''m not even sure if I''ll be able to properly explain what I''m trying to do, but I''ll do my best. Let''s say that I have two models: Document and Option. A Document has many Options (and, by extension, an Option belongs to a Document). Each document may have a different number of options, hence why I made it a separate model. Each document has the
2011 Oct 11
1
How to use carrierwave with active admin?
Hi, I''d like to upload images and videos with carrierwave at the active admin interface. Just to make it clear, the admin will change images and video at the website using active admin. if anyone knows how to do this please help me. Thank you, Rodrigo -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2013 Jan 27
0
Nested form for a has_one model that already exists
...of already populated Color entries via a whole separate controller + views for creating Colors. When creating a person, I want to be able to select a Color object without creating it. So I''m not looking for something such as: = semantic_form_for @person do |form| = form.input :name = semantic_fields_for :color do |c| = c.input :hex = form.actions :submit This would create a Color model to be associated with a Person. I want something more along the lines of this functionality: = semantic_form_for @person do |form| = form.input :name = form.input :color, :as => :select, :collection =...