more coolness

This commit is contained in:
John Bintz 2012-12-01 12:16:14 -05:00
parent e05a88d340
commit 5fb8609dfe
2 changed files with 11 additions and 0 deletions

View File

@ -8,6 +8,12 @@ def find_attribute(name, value = nil)
attribute
end
def has_attribute?(name, value)
attribute = find_attribute(name)
attribute.text == value
end
def find_input(name)
find("[name$='[#{name}]']")
end
@ -98,3 +104,4 @@ def within_any(search, &block)
false
end

View File

@ -33,6 +33,10 @@ module SemanticRailsViewHelpers
action = nil
end
if action == :show
action = nil
end
options = Hash[options.collect { |k, v| [ k, CGI.escapeHTML(v.to_s) ] }]
route = model