Skip to content

Commit

Permalink
viewhints-children
Browse files Browse the repository at this point in the history
# Specifying view relationships

If we tell Hobo which has\_many relationships are significant, Hobo adjusts to display the list of children on its parent's page.

We added five has\_many relationships, but only two of them are significant, for now.  We specify these in the view hints file for the parent.

SHOW_PATCH
  • Loading branch information
bryanlarsen committed Dec 2, 2009
1 parent b64ada3 commit 17598a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/viewhints/project_hints.rb
@@ -1,5 +1,7 @@
class ProjectHints < Hobo::ViewHints

children :stories

# model_name "My Model"
# field_names :field1 => "First Field", :field2 => "Second Field"
# field_help :field1 => "Enter what you want in this field"
Expand Down
2 changes: 2 additions & 0 deletions app/viewhints/story_hints.rb
@@ -1,5 +1,7 @@
class StoryHints < Hobo::ViewHints

children :tasks

# model_name "My Model"
# field_names :field1 => "First Field", :field2 => "Second Field"
# field_help :field1 => "Enter what you want in this field"
Expand Down

0 comments on commit 17598a5

Please sign in to comment.