Skip to content

Commit

Permalink
more sub-URI fixes for twitpic demo
Browse files Browse the repository at this point in the history
  • Loading branch information
lonestarsoftware committed Sep 13, 2011
1 parent b09f53c commit e78d593
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion demos/twitpic/app/controllers/twitpic_controller.rb
Expand Up @@ -16,7 +16,7 @@ def show
error
else
session[:tried_login] = true
redirect_to '/auth/twitter'
redirect_to OmniAuth::Strategies::Twitter.new(nil).request_path()
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion demos/twitpic/app/views/root/index.html.erb
Expand Up @@ -2,7 +2,7 @@
<intent
type="image/*"
action="http://webintents.org/save"
href="twitpic"/>
href="save"/>
<script type="text/javascript">
$(function() {
attachPickListener(
Expand Down
11 changes: 5 additions & 6 deletions demos/twitpic/config/routes.rb
@@ -1,9 +1,8 @@
Twitpic::Application.routes.draw do
root :to => 'root#index'
get 'twitpic', :to => 'twitpic#show', :as => 'show'
get 'twitpic/upload'
get '/auth/twitter/callback', :to => 'twitpic#callback', :as => 'callback'
get '/auth/failure', :to => 'twitpic#error', :as => 'failure'
post '/twitpic/upload', :to => 'twitpic#upload', :as => 'upload'
delete '/logout', :to => 'twitpic#destroy', :as => 'logout'
get 'save', :to => 'twitpic#show', :as => 'show'
get 'auth/twitter/callback', :to => 'twitpic#callback', :as => 'callback'
get 'auth/failure', :to => 'twitpic#error', :as => 'failure'
post 'twitpic/upload', :to => 'twitpic#upload', :as => 'upload'
delete 'logout', :to => 'twitpic#destroy', :as => 'logout'
end

0 comments on commit e78d593

Please sign in to comment.