I\'m having an extremely difficult time figuring out how to serialize the nested attributes of a model in rails. I have a RecipeTemplate which will store an already existing Recipe in it\'s template_d
I am trying to follow the tutorial Dynamic multiple image uploads with Ruby on Rails that creates a new model for photos and will associate them with another model. After copying and pasting all the c
I have 3 models: class DropShipOrderLineItem < ActiveRecord::Base belongs_to :drop_ship_order belongs_to :line_item
In my app, Users have many Conversations, and Conversations have many Messages. I want to create a new Conversation: I have to specify the Users (readers) and the (first) Message. I tried the followin
Here\'s the basic setup: I have an Order model. An Order has one Address and it accepts_nested_attributes_for :address.
I\'m struggling with postgreSQL, as I don\'t know how to link one instance of type A to a set of instances of type B. I\'ll give a brief example:
So I\'m building a form in rails 3.1, using <%= simple_nested_form_for(@person, :url => collection_url, :html=>{:multipart => true}) do |f| %>
I have two tables: Quote and Part.I am using the rails 3.1 ruby 1.9.2.My code is as follows: class Quote < ActiveRecord::Base
I have the following javascript object containing a multi-value email property: var contact = { email ={
I have a single text area input that I would like to get as a blob my new method on my controller, but would like to parse and otherwise mess with the input before it\'s saved.