按钮如下:
<%= render 'follow_form' if signed_in? %>
在 follow_form 中:
<%= render 'follow' %>
在 follow.html.erb 中:
<%= form_for current_user.relationships.build(:followed_id => @user.id),
:remote => true do |f| %>
<div><%= f.hidden_field :followed_id %></div>
<div class="actions"><%= f.submit "Watch" %></div>
<% end %>
我将如何使用 CSS 设置样式?