Skip to content

Commit

Permalink
suggestion_ties_path
Browse files Browse the repository at this point in the history
  • Loading branch information
atd committed Nov 8, 2010
1 parent 44d5300 commit a1f9eb8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/controllers/ties_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
class TiesController < InheritedResources::Base
respond_to :html, :xml, :js

before_filter :authenticate_user!, :only => :suggestion

def suggestion
@tie = current_user.suggestion
end
end
1 change: 1 addition & 0 deletions app/views/ties/suggestion.js.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<%= render(@tie) %>
6 changes: 5 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@

resources :groups

resources :ties
resources :ties do
collection do
get 'suggestion'
end
end
resources :activities do
resource :like
end
Expand Down

0 comments on commit a1f9eb8

Please sign in to comment.