Skip to content
Browse files

trying a solution for url_for

  • Loading branch information...
1 parent c597294 commit 8fd558fedb8177919c93288c1fd9993a7f9e66fc @mcanato committed
View
1 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
View
4 lib/twitter-bootstrap-markup-rails/helpers/button_helpers.rb
@@ -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
@@ -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?
@@ -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.
Something went wrong with that request. Please try again.