Friday, May 27, 2011

[Rails] Re: Oauth2 for Rails and Mobile Browsers

Okay I did some further behavior testing on several mobile devices with
omniauth.

It appears that when I physically type the url for:

http://mysite.com/auth/facebook
http://mysite.com/auth/twitter
http://mysite.com/auth/google

Everything works fine. However, the default link_to is not working
fine.

I've tried:

<%= link_to image_tag("twitter_64.png", :size => "64x64", :alt =>
"Twitter"), "/auth/twitter" %>

OR:

<%= link_to image_tag("twitter_64.png", :size => "64x64", :alt =>
"Twitter"), "#{root_url}auth/twitter" %>

Both fail on the mobile device. What is the different between the
request states for "manual input", and link_to?

Now I'm curious..

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate