Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: pwgustafson
Anybody having trouble getting the data attribute working on rails 3.0.1?
There is an option within the facebook app admin screen, called authenticated referrals. So when a friend clicks a link posted on facebook by your app, they will be asked to allow access to the app before proceeding.
I am curious what the best way would be to basically do all the steps in this episode, authenticate, register, login, etc..but during this action:
The url that is passed into the app from authenticated users looks something like this:
which returns the code upon authentication.
How can I take that code, and basically do everything needed to get the omniauth hash...this doesn't seem to work:
Is there something special that oauth is doing in the callback URL that can't be done in other controller/actions?
Im using carrier wave to store uploaded files, but when I do a deploy, those files get overwritten and are not longer accessible, cause they are in previous releases...I know I could use something like a3 for file storage, but I don't really require that right now...
Any ideas on what I might be able to do copy the previous deploys "upload" dir back into the "current" app?
Thanks JP - I was using this:
RAILS_ENV=production bundle exec rails c
but your is much easier to type :)
Anybody know how to fire up the ruby console in the linode?
Ryan helped me figure this out...I was having issues installing mysql, so I had to manually install the gem:
apt-get install libmysqlclient-dev
then I changed the mysql socket in database.yml to:
Hope that helps anybody who runs into this issue.
Im getting this error with deploy:cold..any ideas?
failed: "sh -c 'cd /home/deployer/apps/burden_farming/releases/20120322200251 && bundle install --gemfile /home/deployer/apps/burden_farming/releases/20120322200251/Gemfile --path /home/deployer/apps/burden_farming/shared/bundle --deployment --quiet --without development test'" on 126.96.36.199
Anybody else getting:
undefined local variable or method `current_user'
I don't know why my helper method is not getting loaded..
first off: I am using rails 2.1.1 and ruby 1.8.7. I have the gem installed so I'm pretty sure that is all setup.
But here is my issue:
map.ipad_push '/api/ipad/v1/push/user/:user_id.:format', :controller => 'api', :action => 'push'
I have my api_controller.rb, and an action defined in it called "push"
in views/api i have file push.json.rabl
But when I try to view the json, I get the "Missing template api/push.json.erb in view path /Users/pwgustafson/Desktop/HitFix/hitfix2/app/views"
I was able to get this working in another rails 3 app, so I'm curious if there might be some basic thing I'm doing wrong to get this working.
I tried this..but seem to be getting a weird error:
Completed 406 Not Acceptable in 9ms...any ideas?
I'm using rails 3.0.5...
Im using rails 3.0.5...do you know if this is supported for rails 3 apps?
I am fairly new to rails, but I'd love to install and use this calendar, but how would you do that in rails 3?
the following command doesn't seem to work:
script/plugin install git://github.com/p8/table_builder.git