diff options
| author | hukl <contact@smyck.org> | 2009-08-15 16:35:55 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-08-15 16:35:55 +0200 |
| commit | 2b948651a0d7020ac7abb462383c991cb9f97020 (patch) | |
| tree | 7c81aba9274d601177ed40722ec739cc551dbf59 | |
| parent | 83d87e5b8c129bf3abcc47cc920ac6de00774735 (diff) | |
order of menu items set
| -rw-r--r-- | app/helpers/content_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/content_helper.rb b/app/helpers/content_helper.rb index 012ee42..5f6143b 100644 --- a/app/helpers/content_helper.rb +++ b/app/helpers/content_helper.rb | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | module ContentHelper | 1 | module ContentHelper |
| 2 | 2 | ||
| 3 | def main_menu | 3 | def main_menu |
| 4 | menu_items = MenuItem.all | 4 | menu_items = MenuItem.all(:order => "position ASC") |
| 5 | render( | 5 | render( |
| 6 | :partial => 'content/main_navigation', | 6 | :partial => 'content/main_navigation', |
| 7 | :locals => {:menu_items => menu_items} | 7 | :locals => {:menu_items => menu_items} |
