Sha256: 009082c0f0310cf88080210f9c91cbcd44322de3dc347f78d84e64f2a8dbf21d

Contents?: true

Size: 715 Bytes

Versions: 12

Compression:

Stored size: 715 Bytes

Contents

.well
  %h2= current_page_title
  %p
    Use
    %code :include
    in
    %code :initialize_grid
    to include associated tables.
    %code :include
    can be a single association name, an array of association names.
    If you need to join tables to joined tabes, use hashes, for example:
    %code include: [:priority, :status, {project: :customer}]

  %p
    To define a column from a joined table, use
    %code :assoc
    to specify a the corresponding association.
    If you need to join a table to a joined table,
    list associations in an array on the correct order
    (look at the customer column).
  %p
    You can drop a block if you don't need any special markup.

= show_code

= render   'grid'

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
wice_grid-6.1.3 spec/support/test_app/app/views/joining_tables/index.html.haml
wice_grid-6.1.2 spec/support/test_app/app/views/joining_tables/index.html.haml
wice_grid-6.1.1 spec/support/test_app/app/views/joining_tables/index.html.haml
wice_grid-6.1.0 spec/support/test_app/app/views/joining_tables/index.html.haml
pwice_grid-7.0.0 spec/support/test_app/app/views/joining_tables/index.html.haml
pwice_grid-6.1.2 spec/support/test_app/app/views/joining_tables/index.html.haml
pwice_grid-6.1.1 spec/support/test_app/app/views/joining_tables/index.html.haml
pwice_grid-6.1.0 spec/support/test_app/app/views/joining_tables/index.html.haml
pwice_grid-5.0.2 spec/support/test_app/app/views/joining_tables/index.html.haml
pwice_grid-5.0.1 spec/support/test_app/app/views/joining_tables/index.html.haml
pwice_grid-5.0.0 spec/support/test_app/app/views/joining_tables/index.html.haml
wice_grid-4.1.0 spec/support/test_app/app/views/joining_tables/index.html.haml