Skip to content

Commit

Permalink
trying a solution for url_for
Browse files Browse the repository at this point in the history
  • Loading branch information
ilpeste committed Jul 23, 2012
1 parent c597294 commit 8fd558f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/twitter-bootstrap-markup-rails/components/button.rb
@@ -1,6 +1,7 @@
module Twitter::Bootstrap::Markup::Rails::Components
class Button < Base
include ActionView::Helpers::UrlHelper
include ActionDispatch::Routing::UrlFor

attr_reader :text

Expand Down
4 changes: 1 addition & 3 deletions lib/twitter-bootstrap-markup-rails/helpers/button_helpers.rb
Expand Up @@ -62,7 +62,7 @@ def bootstrap_button_dropdown(options = {})
# :type - Additional button type(s). For one, just specify a string, but
# you can also pass an array (of sym or str) for multiple classes
# :disabled - Will disable the button if set to true
# :icon_nanme - Specify an icon name from bootstrap to prepend
# :icon_name - Specify an icon name from bootstrap to prepend
# :icon_white - Specify true if you want the icon to be white
# :id - Assign an ID to the button
# :html_options - Any additional options you'd like to pass to the content_tag that will be created
Expand All @@ -81,7 +81,6 @@ def bootstrap_link_to(text, link, options = {})
).to_s
end


def bootstrap_link_to_unless(condition, text, link, options = {}, &block)
if condition
if block_given?
Expand All @@ -98,7 +97,6 @@ def bootstrap_link_to_if(condition, text, link, options = {}, &block)
bootstrap_link_to_unless !condition, text, link, options, &block
end


end
end

0 comments on commit 8fd558f

Please sign in to comment.