I'm working on a reset_password method in a Rails API app. When this endpoint is hit, an ActiveJob is queued that will fire off a request to Mandrill (our transactional email client). I'm currently trying to write the tests to ensure that that the ActiveJob is queued correctly when the controller endpoint is hit. def reset_password @user = User.find_by(email: params[:user][:email]) @user.send_rese
I'm trying to incorporate images into my web app and I keep running into this error after removing quite a few features. It came down to my 'create' application controller and I'm not entirely sure where I should go from here. 2015-02-06T20:30:12.292187+00:00 app[web.1]: (1.9ms) ROLLBACK 2015-02-06T20:30:12.296299+00:00 app[web.1]: NameError (uninitialized constant Paperclip::Storage::S3::AWS): 20
I'm trying to start my application. Is a unicorn + foreman + sinatra application. This is my config.ru file: require "rubygems" require "sinatra" Bundler.require require File.expand_path '../twitter_module.rb', __FILE__ run TwitterModule require File.expand_path '../lib/tweet_streamer.rb', __FILE__ require 'sidekiq/web' run Rack::URLMap.new('/' => Sinatra::Application, '/sidekiq' => Sidekiq::Web)
I'm trying to implement facebook authentication in my app following this guide I've followed all the steps but get the following error after hitting login. Unknown action The action 'facebook' could not be found for Devise::OmniauthCallbacksController I've created the file omniauth_callbacks_controller in controllers/users. It has a facebook method defined. Any idea how I should debug? Adding my r
I'm trying to upgrade my redmine from 1.3.0 to 2.0.0, but I have problems with the database migration. When I run the command: rake db:migrate RAILS_ENV=production it shows an error like rake aborted! uninitialized constant RAILS_ENV My error log is: ActiveRecord::SubclassNotFound (The single-table inheritance mechanism failed to locate the subclass: 'GoogleAppsAuthSource'. This error is raised be
When writing a request spec, how do you set sessions and/or stub controller methods? I'm trying to stub out authentication in my integration tests - rspec/requests Here's an example of a test require File.dirname(__FILE__) + '/../spec_helper' require File.dirname(__FILE__) + '/authentication_helpers' describe "Messages" do include AuthenticationHelpers describe "GET admin/messages" do before(:each
I'm doing a singe-page application using Rails. When signing in and out Devise controllers are invoked using ajax. The problem I'm getting is that when I 1) sign in 2) sign out then signing in again doesn't work. I think it's related to CSRF token which gets reset when I sign out (though it shouldn't afaik) and since it's single page, the old CSRF token is being sent in xhr request thus resetting
I am trying to push my app on heroku. I am still in dev. I use devise with the confirmable module. When I try to add a user with the heroku console I got this error: Missing host to link to! Please provide :host parameter or set default_url_options[:host] in test and dev environment i have the following line: environments/development.rb and environments/test.rb config.action_mailer.default_url_opt
It's my understanding that Rails' testing environment is torn down and rebuilt before each test...so how do I test a controller that requires that a user be logged in and that user can't be created without Device's confirmable module getting in the way? Devise's recommended method (below) creates a new user which is then sent an email by Devise's confirmable module. How do I get around this so I'm
I am using the ruby twitter gem and oauth to gain access to users twitter accounts. In my code, I have: unless @user.twitter_authd? oauth = Twitter::OAuth.new('token', 'secret') session[:twitter_request_token] = oauth.request_token.token session[:twitter_request_secret] = oauth.request_token.secret @twitter_auth_url = oauth.request_token.authorize_url end where token and secret have my actual toke
I have this code I use to get avatars from Facebook... if auth.info.image.present? user.update_attribute(:avatar, URI.parse(auth.info.image)) end When I try to load the code now I get this error: A RuntimeError occurred in authentications#create: redirection forbidden: http://graph.facebook.com/672086173/picture?type=square -> https://fbcdn-profile-a.akamaihd.net/hprofile-ak-prn2/t5.0-1/1086349_67
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く