按鈕如下:如何式按鍵在Ruby on Rails的
<%= 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?
非常感謝! – Elias7 2012-04-13 07:26:04