Skip to content

Commit

Permalink
Telling more about belongs_to options in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Apr 14, 2009
1 parent f45a6ee commit 49ff641
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README
Expand Up @@ -339,7 +339,9 @@ Remember that our projects have pretty urls? So if you thought that url like
belongs_to :project, :finder => :find_by_title!, :param => :project_title
end

Check belongs_to file for more customization. :)
It also accepts :route_name, :parent_class and :instance_name as options.
For more information, check the lib/inherited_resources/class_method.rb file
for more customization. :)

Nested belongs to
-----------------
Expand Down

0 comments on commit 49ff641

Please sign in to comment.