Say I have an STI relationship, where Commentable is the super class, and NewsComment is the subclass.In Commentable I have:
I have 2 models: class Invoice < ActiveRecord::Base has_many :invoice_items accepts_nested_attributes_for :invoice_items, :allow_destroy => true
I have simple project+task application I am creating in Rails 3.1.RC4. It will have project names, tasks and each task will be assigned to a person. The project form is simple with only two boxes (1)
I would like to a tagging system where I can separate the tags by the user\'s who created them. I followed Railscast #167 about setting up tags using virtual attributes, but that way only lets me call
Hi I\'m trying to setup a validation that is only called in a specific form view, to do this I\'m trying to create a hidden_fieldfor a virtual 开发者_如何学编程attribute on the form and set this to a
In the app I\'m working on, Courses have many Problems, which in turn have many Steps. Right now there is a form for adding Problems to Courses (and then Steps can be added to those problems). What we
I\'m basically attempting to implement the solution from Railscast #32, modernized for Rails 3.0.7 http://railscasts.com/episodes/32-time-in-text-field
Let\'s say that you have a resource that is created and displayed entirely within the view of开发者_Python百科 another resource (eg. comments or tags). Should you still make it it\'s own resource, or
I am trying to implement a simple tagging system using a tag virtual attribute on a notes object. a tag contains a label and a user_id. what I would like to do is update the HABTM to relationship to t
I spent some time figuring this out and haven\'t seen others post on it so maybe this will help someone. Also, I don\'t have much Rails experience so I\'d be grateful for any corrections or suggestion