RailsCasts Pro episodes are now free!

Learn more or hide this

Olivier's Profile

GitHub User: olimart

Comments by Olivier

Avatar

Rails 4

ruby
def sort
  params[:stack].each_with_index do |id, index|
     Stack.where(id: id).update_all({position: index+1})
  end
  render nothing: true
 end
Avatar

For information, the app crashes when handling failure scenario provided by stripe. https://stripe.com/docs/testing

Avatar

Does anyone know how to install the unaccent extension for pg?

PG::Error: ERROR: could not open extension control file "/usr/share/postgresql/9.1/extension/unaccent.control": No such file or directory

Avatar

Can you actually explain what this does (are you copying or symlink?) and why (why separate directory since rails has a place for everything?)? From a beginner experience deploying rails app seems complex. Thanks.

Avatar

Same here. Exactly what I expect from Pro episodes. The full cycle with cancellation, changing plans and insufficient funds would be awesome. Thanks Ryan! (also waiting for PayPal implementation on Railscasts :)