Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

robbied72's Profile

GitHub User: robbied72

Comments by


Is there a way of discounting certain fields in the drop down as i have a lot of foreign keys in the table that I want to search on?


maybe a bit off subject but i am using omniauth to collect linked in profile data and am a bit stuck when it comes to getting info outside the - raise request.env["omniauth.auth"].to_yaml

I am trying to gain as much info as possible about signed in users such as past positions and location

here is the current user.rb save/create code

def self.from_omniauth(auth)
          where(auth.slice(:provider, :uid)).first_or_initialize.tap do |user|
            user.provider = auth.provider
            user.uid = auth.uid
                  user.first_name =
                  user.last_name =
      user.image =
      user.industry =
      user.current_job_title =
      user.pub_profile =
      #user.interests =

any help would be appreciated


ps. i have had a look at this link but not sure how to go about getting the values into the db - []


This is a great little gem to see what overheads you are getting in your app due to not slim lining your SQL statements +1


So how would i go about redirecting a new user to a profile model so that they could fill in extra details about themselves?


Thanks Brian, will give it a shot.


What kind of cost could I expect for a small site with say between 100 and 500 hits per day? Would it work out cheaper than a linode vps in this case?


Thanks for that Mike, works a treat :)


Is there any way i could use a combination of two fields to use the Slug?

for instance I have

friendly_id :lname, :use => :slugged

and would like to add the first name of the user field - :fname to make it more unique.