Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change README to talk about rspec bug and polymorphic associations.

  • Loading branch information...
commit a8751f45e5c5803d525ee3acd11eca62ad077da3 1 parent c7b5003
@josevalim authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 README.rdoc
View
9 README.rdoc
@@ -30,6 +30,12 @@ If you want it as plugin, just do:
script/plugin install git://github.com/josevalim/inherited_resources.git
+== Rspec known bug
+
+When used with integrate_views equals to false, rspec overwrites default_render,
+render and some other controller methods which makes Inherited Resources not work
+properly. In such cases, you have to set integrate_views to true.
+
== Basic Usage
To use Inherited Resources you just have to inherit (duh) it:
@@ -422,6 +428,9 @@ When using polymorphic associations, you get some free helpers:
parent_class #=> Task
parent #=> @task
+Right now, Inherited Resources is limited and does not allow you
+to have two polymorphic associations nested.
+
== Optional belongs to
Later you decide to create a view to show all comments, independent if they belong
Please sign in to comment.
Something went wrong with that request. Please try again.