开发者

link_to in rails3

<%= link_to_remote "See more", :url => { :action => "activity", :page_current => (@page_cu开发者_运维技巧rrent.to_i + 1), :user_id=>@suser_profile.id }, :update => "sup_activity_#{@page_current.to_s}", :position => :before %>

how to convert this to link with the remote=>true in rails 3


Shouldn't this work?

<%= link_to "See more", :url => { :action => "activity", :page_current => (@page_current.to_i + 1), :user_id=>@suser_profile.id }, :update => "sup_activity_#{@page_current.to_s}", :position => :before, :remote => true %>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜