I\'m editing multiple instances of a parent model in an index view in one form, as in Railscasts #198.
I\'ve come across a rather bizarre error. I have a nested form that works as expected except when a validation fails on an existing record. When a validation fails on an existing record, the re-render
I\'ve been struggling to create a form for a Mongoid model that has an array field. I want my form to have on text box per entry in the array. If I\'m creating a new record, the default will be one em
I\'m trying to do fields_for of a subset of objects and struggling some.Here are some details: class Club < ActiveRecord::Base
I am trying to create a nested form to handle a has_many :through relationship and getting duplicated fields being rendere开发者_运维百科d.
I have a form that handles 2 models, Vehiculo and Poliza. This is how I have them set up right now: class Vehiculo < ActiveRecord::Base
I am using Rails 3.0.3 with ruby 1.9.2p0. In my profiles_controller (edit function) I have this call @profile = Profile.find(params[:id])
Is there a method (or way to pull off similar functionality) to do a fields_for_with_index? Example: <% f.fields_for_with_index :questions do |builder开发者_开发知识库, index| %>
I have a little trouble getting this to work. class User < ActiveRecord::Base has_many :events, :through => :event_users
I\'m trying to create a nested model form in Rails 3.0.3. Here are my models: class Bird < ActiveRecord::Base