Method: WWMD::Page#action

Defined in:
lib/wwmd/page/parsing_convenience.rb

#action(id = nil) ⇒ Object

return the complete url to the form action on this page



31
32
33
34
35
36
# File 'lib/wwmd/page/parsing_convenience.rb', line 31

def action(id=nil)
  id = 0 if not id
  act = self.forms[id].action
  return self.last_effective_url if (act.nil? || act.empty?)
  return @urlparse.parse(self.last_effective_url,act).to_s
end