Displaying 20 results from an estimated 500 matches similar to: "Stop User from Changing URL"
2012 Sep 04
2
How to get contact list from yahoo in rails using OAuth
I can successfully get the contacts from google using OAuth gem in rails.
my gmail configuration is :
:google=>{
:key=>"***",
:secret=>"***",
:expose => true,
:scope=>"https://www.google.com/m8/feeds/"
}
now i want to get contact from yahoo and hot mail. How to get that contact
I have given following configuration in my
2006 May 25
5
Setting a global before_filter action in application.rb
Can you set a global before_filter action in application.rb?
So, for example, you could control authentication for all of the
controllers in an app.?
Obviously, you would need a way to reference actions by controller
within this "global before-filter".
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
2013 Feb 14
1
create object after before_filter :authenticate_user!
hi
I use devise and cancan
my model
class PostsController < ApplicationController
before_filter :authenticate_user!, only: [:create, :update, :destroy]
...
end
so an unauthentificate user can access new post form. Now when
unauthentificate user submit new or edit forms, he is redirected to login
form. But when he logs in, his post is not save in database. Is there
anythings to do such
2012 Jan 09
1
Windows, Rails 3.1.3, Omniauth-BrowserID, SSL Erro
One and all, I have scoured the internet high and low tonight and I
can not for the life of me fix this damn problem. I have downloaded
certificates, installed certificates, changed my :ca_path and such as
stated in the documentation for omniauth-facebook for which I thought
would be ok to do with this one. Can anyone point me in the right
direction of how to disable SSL in development mode
2012 Sep 16
1
“Routing Error No route matches {}” when omniauth failed on registration
(Original question was asked here:
http://stackoverflow.com/questions/11506734/routing-error-no-route-matches-when-omniauth-failed-on-registration
)
I am using omniauth-identity and configure its "fail on registration".
My files:
config/initializers/omniauth.rb
OmniAuth.config.logger = Rails.logger
Rails.application.config.middleware.use OmniAuth::Builder do
#...
provider
2011 Apr 20
1
Omniauth facebook authentication failure
I am using devise and omniauth for authentication. Wherever i click on
the facebook login button i get this warning msg.
******************************************
warning: peer certificate won''t be verified in this SSL session
******************************************
But now i get this error msg
*****************************************
OpenSSL::SSL::SSLError SSL_connect returned=1
2012 Jan 18
4
Adding a custom select to omniauth register form
Hi,
I''m creating a rails app using omniauth 1.0.1 on Rails 3.1.3 and ruby
1.9.2
I''m having trouble adding a select field that populates from a class
constant in my user model.
Here''s my model:
class User < ActiveRecord::Base
ROLES = ["Customer","Service Supplier"]
has_many :leads
validates_presence_of :role
def
2013 Oct 07
2
Omni_auth with Facebook
Hi,
I''ve implemented the sample app with omni_auth(''0.2.6''). I''m using
rails 2.3.11 with ruby 1.8.7. I tried to connect with Facebook but
getting oauth error. I tested it with twitter & google plus account.
Both are working fine but the FB connects is not working yet. Can you
please help me out?.
--
Posted via http://www.ruby-forum.com/.
--
You
2012 Oct 06
1
how to scope the /auth/:provider/callback , using OmniAuth for users and members
I have two separate groups of people authenticated w Devise , but in
this case I cannot used the Devise embedded OmniAuth support. So i am
using directly the OmniAuth gem.
Initialized w :
Rails.configuration.middleware.use OmniAuth::Builder do
..provider :twitter,
..
end
It''s running fine , but I have an issue with the callback route
mapping :
I tried
match
2008 May 21
3
How to access Rails::Configuration instance methods
There was a thread yesterday about ENV["_"] which is not available to
Windows,
I got to playing around with how to find access to the
initializer_path or in this case the root_path
My question is more about why I don''t have access to what appears to
be a public method than finding the root_path.
I did this in 2.0.2 with script/console
The Rails object has a Configuration
2006 Jan 17
0
file_column with both root_path and store_dir
I store my file_column database outside of my RAILS_ROOT.
It seems to work in real life, but not in tests.
In the tests, I can''t set both the root_path and the store_dir. In
tests, setting the store_dir option will override the root_path
option. The only way for root_path to work is to remove store_dir. I
think the problem is in file_column.rb on line 22:
options[:store_dir]
2013 Aug 26
2
linkedin login using omniauth
Hi,
I am trying to add linkedin login feature in my rails application using
omniauth gem..I used omniauth gem for Fb login and it''s working fine..but
it''s not working for linkedin login
this is my code
/model/user.rb
class User < ActiveRecord::Base
attr_accessible :name, :oauth_expires_at, :oauth_token, :provider, :uid
def self.from_omniauth(auth)
2011 Mar 03
1
which oauth gem to use?
Does any1 have any recommendations for an oauth gem. I am trying to
create a twitter proxy. I''m not sure which oauth gem to use. Thanks in
advance!
--
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
2011 Mar 01
1
Writing Rspec for signup using facebook
Hi,
We are using omniauth for signup through Facebook and twitter.
Is there any way i can check this by rspec controllers since it contains
callbacks n all..so i think we may have to use mock models.
If there is any link or documentation please let me know so that i can
start implementing.
--
Posted via http://www.ruby-forum.com/.
2013 Sep 04
7
Shift from mongrel to webrick
Hi Everyone
I have installed mongrel gem and in my dev I can able to run my app on
mongrel but If I want to shift to webrick how can I shift easily with out
uninstalling the mongrel gem
Thanks in advance
--
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
2012 Aug 30
4
how to change theme in rails 3.2.7
I''m using rails 3.2.7.
I have few themes in my public/themes folder.
For example in my theme-1 folder
there is one index.html + style.css + few images (if required)
At the time of registration user will select one theme. Now when the
user will login that theme will display. I will use handle
bar(http://handlebarsjs.com/) for data insertion.
My main problem is that how
2013 Jan 07
4
JSON::ParserError in controller
Hi All
I''m trying to build an application which requires to scrap information
from a webpage. On trying to perform the action, I get an error while
trying to convert the html data to JSON. Has anyone experienced this
before and if so can you please tell me how to solve this problem ?
Please see below for code snippet and error log.
Thanks in advance
Anush
require
2012 Sep 08
4
dash symbol
In the example below, what is the dash doing between the class
attribute and array:
(field_helpers -
[:label, :check_box, :radio_button, :fields_for, :hidden_field, :file_field]).each
do |selector|
--
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
2011 May 13
2
"message": "Error validating application."
Hi
I''m using omniauth to authenticate whith facebook and twitter
Twitter is ok
But when i push facebook button and log in facebook account it returns
me
message
{
"error": {
"type": "OAuthException",
"message": "Error validating application."
}
}
How can i fix it?
--
You received this message because you are
2011 Aug 03
2
FYI: Heroku Cedar, pg, openssl, omniauth, troubles and a solution
Hi guys,
I found a really nasty issue that affects people running on Heroku''s cedar
stack. We are using Rails 3.1.rc5, pg 11, omniauth 2.6. Ruby is 1.9.2.180p
Basically there is an incompatibility between the http, pg and OpenSSL
modules which segfaults when making https calls, for example to log in
through twitter. Now pg is a required gem when using Heroku cedar stack so
leaving that