Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed routing

  • Loading branch information...
commit 0825a7c5b32f74c13a30afb6470702ea863083fd 1 parent 690c650
@skalnik skalnik authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 app/views/users/_form.html.erb
  2. +1 −1  config/routes.rb
View
4 app/views/users/_form.html.erb
@@ -39,7 +39,7 @@
<% if @user.api_is_enabled? %>
<p>
Your API Key:
- (<%= link_to 're-generate', api_key_path, :method => :post %> | <%= link_to "disable", api_key_path, :method => :delete %>)
+ (<%= link_to 're-generate', api_keys_path, :method => :post %> | <%= link_to "disable", api_key_path, :method => :delete %>)
</p>
<p>
<strong><%= @user.api_key %></strong>
@@ -49,6 +49,6 @@
You'll need a unique key to make API calls. Remember to keep this key a secret as it can be used to access your account.
</p>
<p>
- <%= link_to("Get a key", api_key_path, :method => :post) %>
+ <%= link_to("Get a key", api_keys_path, :method => :post) %>
</p>
<% end %>
View
2  config/routes.rb
@@ -6,7 +6,7 @@
map.resources :helps, :controller => "help"
map.resources :statuses, :collection => { 'import' => :get, :last => :get }
map.resources :projects, :member => { :invite => :post }
- map.resources :contexts, :notifies, :tendrils, :api_key
+ map.resources :contexts, :notifies, :tendrils, :api_keys
map.filtered_user 'users/:id/:filter', :filter => status_filters, :controller => 'users', :action => 'show'
Please sign in to comment.
Something went wrong with that request. Please try again.