Joined June 2012
·

Sergio Tapia Gutierrez

Senior Software Engineer - Ruby on Rails | Elixir | Javascript (ES6) at StackShare
·
Miami
·
·
·

Stop and restart your app?

Keep it this way:

class SessionsController < ApplicationController
end

Create a couple of paths in your routes.rb file as well. Otherwise your Rails application won't know what controller to use.

match 'auth/:provider/callback', to: 'sessions#create', via: [:get, :post]
match 'auth/failure', to: redirect('/'), via: [:get, :post]
match 'signout', to: 'sessions#destroy', as: 'signout', via: [:get, :post]

Thanks for sharing, I'll implement this ASAP - I agree it does look ugly.

Notice "Session" vs. "Sessions" - they're not the same. :) Check your routes.rb file.

@mcmaur: That means that you didn't create the SessionsController. Check above to see what it needs to have.

Hi @semvc, you need to create that file manually using your editor of choice. :)

@tilsammans: That is great news! I didn't know that; thanks for sharing!

@txant: That's probably something wrong on Facebook's end. I've never seen that message but it's pretty straight forward. Your app has been disabled or doesn't exist. Make sure you're using the correct AppID and that your app on developers.facebook.com isn't disabled.

@haripoter77: That's an issue either an issue with your route or your action.

Make sure you have a route set up for that action controller.

Also make sure that action is returning JSON.

render json: @deities

Good idea! I agree. I'll edit the tip.

Posted to Must have development Rails gems over 1 year ago

I also like adding the Sentry gem to keep track of dev and production bugs.

gem 'sentry-raven'

Awesome, glad it worked fine. I also use RubyMine to check production records on my Postgresql instance. Saludos desde Bolivia!

Posted to RSpec Test Results in HTML over 1 year ago

Great suggestion. I can see this working great when running the entire test suite. I normally use the --format documentation flag because I normally run the tests per file, as opposed to the entire suite.

@manuel-cepada:

Sorry about that! I forgot to mention that you need to create a helper method called current_user.

class ApplicationController < ActionController::Base
  protect_from_forgery

  private
  def current_user
    @current_user ||= User.find(session[:user_id]) if session[:user_id]
  end
  helper_method :current_user
end

Glad you like it!

@pixel67: Unfortunately, I can't. I've followed my own guide yesterday when setting up another VPS and everything works perfectly. Do you get an error message when installing or does it just freeze?

Posted to Android Studio Configuration over 1 year ago

It will be a massive help to people having issues if you copy and paste the error messages you had along with the solution.

That way Google can pick it up and let people who are having issues find this protip.

Thanks for sharing!

@craigmaslowski You're very welcome, I'm glad it saved you some needless work.

@qweikeris Check you SFTP configuration file for an option that says Upload on Save and set that to true.

Now when you save a file it'll upload automatically.

@fractal I've never tried that to be honest, if you do give it a shot, please let us know how it went - or better yet, write a pro-tip!

Thought this was going to be about KnockoutJS.

I'm not sure I understand what you're saying here. Are you saying that <b> tags are more SEO oriented? I was under the impression that the <strong> tag was in fact MORE semantic and given heavier pull in search algorithms.

Do you have a source claiming otherwise?

Achievements
4,235 Karma
282,368 Total ProTip Views
Interests & Skills