Module: ActionTabler::Routing::Mapper

Defined in:
lib/action_tabler/mapper.rb

Instance Method Summary collapse

Instance Method Details

#resource_with_tables(*args) ⇒ Object

Add a routing mapper for a single resourceful controller with tables



13
14
15
16
17
18
# File 'lib/action_tabler/mapper.rb', line 13

def resource_with_tables *args
  resource *args do
    get 'table', :on => :collection
  end

end

#resources_with_tables(*args) ⇒ Object

Add a routing mapper for a list of resourceful controllers with tables



6
7
8
9
10
# File 'lib/action_tabler/mapper.rb', line 6

def resources_with_tables *args
  resources *args do
    get 'table', :on => :collection
  end
end