Method: Bureau::Adapter::ClassMethods#command_plus
- Defined in:
- lib/bureau/adapter.rb
#command_plus ⇒ Object
33 34 35 36 37 38 |
# File 'lib/bureau/adapter.rb', line 33 def command_plus o = 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 |