Method: Bureau::Adapter::ClassMethods#command_plus

Defined in:
lib/bureau/adapter.rb

#command_plusObject



33
34
35
36
37
38
# File 'lib/bureau/adapter.rb', line 33

def command_plus
  o = @list_options
  path = "#{o[:path]}/#{self.name}?_no_wrap=true&_destination=#{::Rack::Utils::escape(o[:destination])}"
  o[:filter].each{|k,v|path<<"&model[#{k}]=#{::Rack::Utils::escape(v)}"} unless o[:filter].nil?
  "<a href='#{path}' class='btn btn-plus push-stack' title='Create'></a>\n"
end