nested-forms
Rails 3.1.1 escape_javacript function is rendering plain text instead of appending HTML element
What I\'m trying to do is to dynamically add form fragments inside a nested form in rails 3.1.1. I have this javascript inside CDATAgenerated from rails helper method which uses escape_javascript meth[详细]
2023-04-13 03:40 分类:问答Rails: Nested_form_for and scope, POST creates record twice/duplicate
In my form I need my admin scope like this <%= form_for [:admin, @event], :html => {:multipart => true} do |f| %>[详细]
2023-04-11 21:20 分类:问答How to use nested_form gem with a different partial for new vs. existing nested model objects?
I am using the nested_form gem but ran in to 开发者_运维知识库one use case that is giving me some trouble. I have one particular nested form where the partial for existing nested objects is different[详细]
2023-04-11 14:51 分类:问答Rails 3 Nester_Form Gem: How do I customize the template?
I am using the rails 3 gem nested_forms and would like to change how the 开发者_JAVA百科default blueprint for insertion is generated. I can not figure out how/where this code would comes from, and how[详细]
2023-04-11 10:55 分类:问答Having trouble with many to many association nested forms
I am getting this error ActiveRecord::unknown attribute: store from dealcontroller,I am pretty sure has something to do with this line[详细]
2023-04-11 05:39 分类:问答nested_form displays a partial twice
I\'m using the gem nested_form in a Rails 3.1 application. The problem is that when I click on the link generated by \"link_to_add\", it displays the partial twice, whereas it should display it just o[详细]
2023-04-11 04:25 分类:问答foreign key not populating in the table on create - rails 3
I have two models, \'product\' with \'belongs_to\' and \'category\' with \'has_many\'. Product has a foreign key \'category_id\'. And in the form product/_form I\'m trying to include category field wi[详细]
2023-04-10 22:50 分类:问答Carrierwave image upload in nested form still creating record even no file is specified
I have a Carrierwave image upload in a nested simple_form which works (sort of) unless the user does not specify a file, in which case a blank Picture object is created unless there was a previously e[详细]
2023-04-10 04:07 分类:问答How to design model with two, independent and optional relations to the same model?
I\'ve got a problem with designing my User model and making a decent form for it. I just want to ensure myself that I\'m doing it wrong :)[详细]
2023-04-09 12:59 分类:问答Nested form not updating the database
I have a nested form that does not update the database. Models: User: has_many :designs, :dependent => :restrict[详细]
2023-04-09 02:11 分类:问答