【发布时间】:2016-04-18 08:11:06
【问题描述】:
我跑了rails generate scaffold pins description:string。接头覆盖引脚如下。我不知道如何解决这个问题。我用 css 尝试了一些,但没有用。有谁知道这方面的解决方案?
【问题讨论】:
-
请发布您的html和css代码
-
<p id="notice"><%= notice %></p> <h1>Listing Pins</h1> <table> <thead> <tr> <th>Description</th> <th colspan="3"></th> </tr> </thead> <tbody> <% @pins.each do |pin| %> <tr> <td><%= pin.description %></td> <td><%= link_to 'Show', pin %></td> <td><%= link_to 'Edit', edit_pin_path(pin) %></td> <td><%= link_to 'Destroy', pin, method: :delete, data: { confirm: 'Are you sure?' } %></td> </tr> <% end %> </tbody> </table> <br> <%= link_to 'New Pin', new_pin_path %> -
你说你尝试了一些css,也发布了。也发布布局文件的内容。将它们添加到您的问题中,而不是 cmets。
标签: css ruby-on-rails