@cqpx 改了但报同一个错!
@cqpx 行么?<%= link_to "个人资料", settings_index_path, :class=>'list_link' %> 按照你的加上去,报错的!
@xqunix 是否能帮忙发个 twitter 的源代码?85636682#qq.com
@xqunix 我能看到效果,都用最高版本的浏览器。你发的示例,如果 box1 变成 body ,box2 就是要透明的 div,也没效果哦!
@xqunix 是否缺少一些代码了,这一句不能实现透明效果哦!
@bony include ApplicationHelp??还是错误
@cqpx 哦,我也想到是 mongoid 的方法,我是用 activerecord 的,没类似的魔法方法?gg 搜不到!
@huacnlee field :post_count, :type => Integer 这里不属于 activerecord>??
@cqpx 参考中!!!谢谢!!!
@ashchan 求代码!有点模糊
@Rei 就是实现一个文章发表排行榜!以数量为排名参考!
@huacnlee 又有这个错误了 model 我已经去到个 s····
ActionView::Template::Error (undefined method `index' for #<Class:0x007f980d7d53c8>):
15: </span>
16: </div>
17: <div class="comments_show">
18: <%= render_cell :comments, :show, :commentable => @micropost, :current_user => current_user %>
19: </div>
20: </td>
21: </tr>
app/models/comment.rb:7:in `<class:Comment>'
app/models/comment.rb:1:in `<top (required)>'
app/cells/comments_cell.rb:6:in `show'
@huacnlee 原来是我的 model 问题,应该是 comment,而不是 comments
@huacnlee 这里
class Comments < ActiveRecord::Base
attr_accessible :comment
belongs_to :user
belongs_to :comentable, :polymorphic => true
index :user_id
index :commentable_type
index :commentable_id
validates_presence_of :comment
end
ActionView::Template::Error (uninitialized constant CommentsCell::Comment):
15: </span>
16: </div>
17: <div class="comments_show">
18: <%= render_cell :comments, :show, :commentable => @micropost, :current_user => current_user %>
19: </div>
20: </td>
21: </tr>
app/cells/comments_cell.rb:6:in `show'
应该是版本问题! 改成这种就没问题了
@metal gem 应该是没问题的,要不 redcarpet 等相关的类就会报错的!