小编fuj*_*san的帖子

RVM Ruby on Rails安装

我在使用ubuntu 12.04在我的机器上安装rvm ROR时遇到了麻烦

这是我得到的输出:

输出#1:

Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/12.04/i386/ruby-1.8.7-p371.Continuing with compilation. 
Please read 'rvm mount' to get more information on binary rubies.
Installing requirements for ubuntu, might require sudo password.
Run Code Online (Sandbox Code Playgroud)

在更新行的最后我得到这个:

输出#2:

There has been error while updating 'apt-get', please give it some time and try again later.
For 404 errors check your sources configured in:
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails rvm ubuntu-12.04

5
推荐指数
1
解决办法
5075
查看次数

will_paginate增量表id

我有一个表,每页分页20个:

    <% @num = 0%>
    <table>
    <tr>
      <th>id</th>
      <th>title</th>
    </tr>

    <% for authors in @authors%>
    <tr>
       <td><%= @num += 1 %></td>
       <td><%= authors.title %></td>
    </tr>
    <% end %>

</table>
<%= will_paginate @authors%>
Run Code Online (Sandbox Code Playgroud)

我想让id行继续下去.当我点击第1页时,我应该看到1,2 3,4等ID.当我点击第二页时,我应该看到21,22,23等,但它刚刚重新启动到1,2,3

ruby-on-rails

3
推荐指数
1
解决办法
143
查看次数

标签 统计

ruby-on-rails ×2

rvm ×1

ubuntu-12.04 ×1