OSDN Git Service

iroiro
[pettanr/pettanr.git] / app / views / home / configure.html.erb
1 <h2>認証トークン</h2>
2 <div>
3 あなたの認証トークンは<%= current_author.authentication_token %>です
4 </div>
5 <div>
6   <% if current_author.authentication_token %>
7     <%= link_to 'delete token', :action => :delete_token %>
8   <% else %>
9     <%= link_to 'generate token', :action => :create_token %>
10   <% end %>
11 </div>
12 <h2>退会</h2>
13 <div>
14   <%= link_to('退会する', {:controller => 'author_registrations', :action => :destroy, :id => current_author.id}, {:method => :delete}) %>
15 </div>