nested-forms
Nested forms in rails 3.1
I have a problem with nested forms: rails 3.1 doesn`t render fields_for blocks when it should (when editing existing record for example). Since I`m not confident enough in my english, I`ve made a smal[详细]
2023-04-06 18:18 分类:问答Reject_if not working
I have some troubles with :reject_if. I don\'t know why the following code doesn\'t work. View - _form.html.erb:[详细]
2023-04-06 01:22 分类:问答Create multiple email records from one text_field values separated by colon
i have a form like this: <%= form_for @group, :url => { :controller => \"groups\", :action => \"create\" } do |f| %>[详细]
2023-04-04 05:45 分类:问答accepts_nested_attributes_for/fields_for not doing anything
I cannot get the attributes given in a nested form to take. I haven\'t been able to find any other posts related to this issue with my exact configuration:[详细]
2023-04-03 10:53 分类:问答Missing block error on nested_form rails 3
I have some models like class CompanyDepartment < ActiveRecord::Base belongs_to :company accepts_nested_attributes_for :phones, :allow_destroy => true[详细]
2023-04-02 19:22 分类:问答-
Dynamically add and remove nested form fields
I\'ve been following along with the out-of-date railscasts: http://railscasts.com/episodes/197-nested-model-form-part-1[详细]
2023-04-01 19:02 分类:问答 Ruby on Rails 3 - Using Jquery dialog modal form with a has many relation
Hello People I\'ve working with jquery for a few days, and I\'ve found an example of dialog modal form that works fine. Here is the example.[详细]
2023-04-01 12:31 分类:问答Nested model form not working properly - need to pinpoint POST/GET redirect
I have a nested model form that isn\'t functioning properly. The POST is to the proper place, but then the GET reroutes me. So I\'m wondering if anyone can help explain what I\'m doing wrong.[详细]
2023-04-01 12:22 分类:问答Calling two methods from one controller in nested model form
Through other posts on SO I\'ve learned that my sign-up process using a nested model form is flawed in that I create a new User, then redirect to create its Profile. Here is the process:[详细]
2023-04-01 10:52 分类:问答How to fix my nested model form redirect
I have a signup process that goes: user = User.new user.email = ... user.password = ... user.profile = Profile.new[详细]
2023-04-01 10:06 分类:问答