I am writing a piece of code in my controller that is suposed to take the data a user inputs in the form of 00:00 and convert that into minutes before sending it to the model. The code I am using is p
Admin Main controller: def new @admin = Admin.new @invitation = @admin.invitations.build @admi.user_admin_relationships.build
I am getting this error ActiveRecord::unknown attribute: store from dealcontroller,I am pretty sure has something to do with this line
Given the following models: class Company include Mongoid::Document has_many :workers, autosave: true accepts_nested_attributes_for :workers
When I save the form (last piece of code shown here) I get an error saying: unknown attribute: person
Product controller: def update params[:product][:category_ids] ||= [] @product = Product.find(params[:id])
hey I asked a question here Rails association help , this person directed me to learn nested attributes here , http://railscasts.com/episodes/196-nested-model-form-part-1 , and here http://ra开发者_如
I have a model, \"Update\" which has_many \"Assets\". An Asset has has_attached_file of :asset, using Paperclip.
I need to validate the objects which are stored in the list on my form bean object. Below is my form bean object.
When I post a form to create a new inquiry with a child comment (in the app, inquiries can have multiple comments), the comment is not getting built. It works when remove the presence validations. So