Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 22nd, 2012  |  syntax: None  |  size: 0.80 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Why is my button not appearing on the page?
  2. <%= form_for current_user.relationships.build(:followed_id => @profile.user.id) do |f| %>
  3.   <div><%= f.hidden_field :followed_id %></div>
  4.   <div class="follow_button"><%= f.submit "Follow" %></div>
  5. <% end %>
  6.        
  7. <form accept-charset="UTF-8" action="/relationships" class="new_relationship" id="new_relationship" method="post">
  8.     <div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓">
  9.     <input name="authenticity_token" type="hidden" value="fo9dve4XjKpqSHqkmYw/lsEPm4PUxRYy+5JM5D4aTLg="></div>
  10.     <div><input id="relationship_followed_id" name="relationship[followed_id]" type="hidden" value="58"></div>
  11.     <div class="follow_button"><input id="relationship_submit" name="commit" type="submit" value="Follow"></div>
  12. </form>