Ruby on rails 未定义的方法“to#i';for:offstfsal:Symbol
我正在获取错误未定义的方法“to_I”,用于:offsfsal:Symbol 在activeadmin中。看来我已经被移除了。任何建议都会有帮助Ruby on rails 未定义的方法“to#i';for:offstfsal:Symbol,ruby-on-rails,ruby-on-rails-4,ruby-on-rails-3.2,ruby-on-rails-3.1,activeadmin,Ruby On Rails,Ruby On Rails 4,Ruby On Rails 3.2,Ruby On Rails 3.1,Activeadmin,我正在获取错误未定义的方法“to_I”,用于:offsfsal:Symbol 在activeadmin中。看来我已经被移除了。任何建议都会有帮助 index :title => "Office Expenses" do selectable_column column "Staff Salary", :offstfsal column "Visa & Medical", :offstvimed column "Total" do |total
index :title => "Office Expenses" do
selectable_column
column "Staff Salary", :offstfsal
column "Visa & Medical", :offstvimed
column "Total" do |total|
:offstfsal.to_i + :offstvimed.to_i
end
column "Total" do |model|
model.offstfsal.to_i + model.offstvimed.to_i
end