Created
June 21, 2009 13:40
-
-
Save some1else/133510 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Project < AR::B | |
has_many :comments, :as => :commentable | |
end | |
class Comment < AR::B | |
belongs_to :commentable | |
end | |
- form_for :project do |project_form| | |
/ fields_for :comment doesn't work :-S | |
- project_form.fields_for :comment_attributes do |comment_form| | |
= render :partial => "comments/form", :locals => {:f => comment_form} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment