开发者

can anyone get p8/table_builder to work with Rails 3.1?

开发者 https://www.devze.com 2023-03-23 04:46 出处:网络
Has anyone been able to get p8 / table_builder https://github.com/p8/table_builder gem to work for Rails 3.1?

Has anyone been able to get p8 / table_builder https://github.com/p8/table_builder gem to work for Rails 3.1?

I don't get any output at all. No error message, no c开发者_开发百科ontent. Is it just me or does it not work?

Cheers


When calling the helper, you need to do so with <%= %>, not like <% %> (the documentation example)

In my case I had to update like this :

<% calendar_for ... %>
<% calendar.day ... %>

to :

<%= calendar_for ... %>
<%= calendar.day ... %>


The solution I found was to choose a different repository:

gem 'table_builder', '0.0.3', :git => 'git://github.com/jchunky/table_builder.git'


If your view file is just getting re-rendered you should kill your rails server and start a new instance of rails server.

0

精彩评论

暂无评论...
验证码 换一张
取 消