I\'m trying to manually build form fields for a testing purpose. I got the following models: class Bedroom < ActiveRecord::Base
I have such code in new.erb.html: <% form_for(@ratification) do |f| %> <%= f.error_messages %>
My goal is to enable a user to be able to submit multiple NewsImages from a parent Blog form. My Blog model looks like this:
I have a ad banner that has a form and this is used by 3rd party site owners that grab this code and have this banner on there site.
I\'m trying to implement Ryan\'s Railscast #197 in a system with Questions, Answers, and (multiple choice) Options. http://railscasts.com/episodes/197-nested-model-form-part-2.
I have been beating my head against a wall with a particular use case for nested forms (I\'m using Rails 2.3.5).
I am trying to save to a join table in a habtm relationship, but I am having problems. From my view, I pass in a group id with:
I am using rails3 beta3 and couchdb via couchrest.I am not using active record. I want to add multiple \"Sections\" to a \"Guide\" and add and remove sections dynamically via a little javascript.I ha
I have a projects resource that has many tasks. I want to ensure that every task has a project_id by adding validates_presence_of :project_id to the tasks model.
I\'m getting this exception when doing a nested model form: ActiveRecord::AssociationTypeMismatch in RecipesController#update