Skip to content
  • azul's avatar
    make use of render partial, locals_hash · 9c3ddc4e
    azul authored
    ```ruby
    render 'group_details', group: group
    ```
    is much clearer than
    ```ruby
    render partial: 'group_details', locals: {group: group}
    ```
    In particular with more locals the latter tends to get ugly.
    
    Also all partials used from different controllers should live in common.
    This way we know when (not) to use the shortcut without the full path name
    9c3ddc4e