开发者

link_to in rails3

开发者 https://www.devze.com 2023-02-04 09:34 出处:网络
<%= link_to_remote \"See more\", :url => { :action => \"activity\", :page_current => (@page_cu开发者_运维技巧rrent.to_i + 1), :user_id=>@suser_profile.id }, :update => \"sup_activity
<%= 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

精彩评论

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