On Jul 21, 2013, at 6:06 AM, trekr67
<cebirim-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hi,
>
> I''m a newbie Ruby on Rails developer and have across the following
problem:
>
> I''ve put an image on a page and want to be taken to twitter to be
authenticated, when the image is clicked however I get the following error when
I do:
>
> ActionController::Routing error (No route matches [GET]
"auth/twitter"
>
> I''ve registered my app on the Twitter dev site and have installed
Ominiauth and Omniauth-Twitter gems. I''ve also added my Consumer keys
and Consumer secret keys (for Twitter) to the relevant files.
>
> This is the code around my image:-
>
> =link_to image_tag("twitter.png", :size => "32x32"),
"auth/twitter", :id => ''twitter image''
>
> Can anyone help please as I''m pulling my hair out in frustration!
First thing you should do is run:
$ rake routes
and see if there is a route for auth/twitter.
If there is not, add one in config/routes.rb for that route.
Read http://guides.rubyonrails.org/routing.html thoroughly.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/E5C8446E-8877-4D92-A670-F2424C6E3C32%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.