目前有以下按钮指向外部链接:
<%= link_to('Connect Dwolla',
@dwolla_link,
class: 'btn btn-lg btn-warning',
data: {disable_with: "<i class='fa fa-spinner fa-spin'></i> Redirecting to Dwolla.com..."}) %>
Run Code Online (Sandbox Code Playgroud)
单击按钮后,会出现微调器和文本,但不会禁用该按钮。
ruby-on-rails twitter-bootstrap ruby-on-rails-5 ruby-on-rails-6
尝试使用Rails 3.2.2运行以下命令,切换到3.2.1并尝试使用另一台计算机来查看它是否与核心/操作系统相关.
我尝试:
rails g bootstrap:themed events
Run Code Online (Sandbox Code Playgroud)
我明白了:
.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/inflector/methods.rb:229:in `const_defined?': wrong constant name event (NameError)
from /Users/charleyhine/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/inflector/methods.rb:229:in `block in constantize'
from /Users/charleyhine/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/inflector/methods.rb:228:in `each'
from /Users/charleyhine/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/inflector/methods.rb:228:in `constantize'
from /Users/charleyhine/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/core_ext/string/inflections.rb:54:in `constantize'
from /Users/charleyhine/.rvm/gems/ruby-1.9.3-p0/gems/twitter-bootstrap-rails-2.0.4/lib/generators/bootstrap/themed/themed_generator.rb:58:in `columns'
from (erb):6:in `template'
Run Code Online (Sandbox Code Playgroud)