gem

How to receive payment data or user data from PayPal using paypal_permissions gem or other?

老子叫甜甜 提交于 2019-12-08 01:37:00
问题 I'm using Rails and need to make reports about payments. I need to receive information about payments. I can't get how to do it. I found paypal_permissions gem to get permissions to obtaion personal info. I need more, so I changed it. In function update added TRANSACTION_DETAILS, added get_transaction_details_data merchant. class MerchantsController < ApplicationController def update callback_url = URI.encode(merchants_request_permissions_callback_url) permissions = 'EXPRESS_CHECKOUT,DIRECT

acts_as_tree vs ancestry gem for tree menu [closed]

≯℡__Kan透↙ 提交于 2019-12-07 18:21:28
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago . I want to implement a tree menu (simple example of tree menu) in a Rails app that I am working on. I am unsure of whether to use acts_as_tree or Ancestry. Its seems that it would be easier to implements a simple tree menu using acts_as_tree, however, Ancestry is more popular

unable to install capybara-webkit on OS X El Capitan

寵の児 提交于 2019-12-07 17:20:22
问题 I am having problem with installing capybara-webkit after upgrading to El Capitan. QT version qt-4.8.7_1 already installed. bundle install gives permission error and sudo gem install gives onother error: bundle install: ~/P/m/web-automation (responsive ⚡=) bundle install Fetching gem metadata from http://rubygems.org/......... Fetching version metadata from http://rubygems.org/... Fetching dependency metadata from http://rubygems.org/.. Resolving dependencies... .... Installing capybara

pdf-writer invalid multibyte char (US-ASCII) expecting keyword_end content = “%PDF-#{@version}\n%âãÏÓ\n” Rails 3

为君一笑 提交于 2019-12-07 16:28:33
问题 I have a problem with the pdf-writer gem on a collaborative project I'm trying to run, I'm using RVM , Ruby 1.9.2p180 , Rails 3.1.0 on Ubuntu 10.10 . I created a new gemset to install the required gems with Bundler, but when I try to run the app I get the fallowing error; josethernandezc@DG965WH:~/Desktop/conest31$ rails s /home/josethernandezc/.rvm/gems/ruby-1.9.2-p180@conest31/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require': /home/josethernandezc/.rvm/gems/ruby

Rake build is operating in an incorrect context

拥有回忆 提交于 2019-12-07 16:18:30
问题 I have a gem that exists simply to collect several engines together for ease of implementation, as well as to provide a few utility methods to all of the included engines. One such utility method is a rake task to release new versions of all of the collected engines. My problem is that, when I run code that should execute in the context of one of the collected engines it all (git commands, file system manipulation, etc.) works, except for the rake build command. For some reason, that command

Bundler cannot find rake but it seems installed

我怕爱的太早我们不能终老 提交于 2019-12-07 16:08:36
问题 I am having some struggles with bundler and rake. According to the error message, bundler can't find rake-10.3.1. Here's the thing, everything I've done seems to indicate that rake-10.3.1 is installed. I've been floating in the google-sphere for days without finding a solution that resolves this issue for me. I'm on Mac OSX 10.8.5. Ruby version is 1.9.3-p392. Error: bundle exec rspec spec/bdr_pre_dev_spec.rb /Users/dru.solis/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.6.2/lib/bundler/spec

Undefined method `end_with?' for “no such file to load — Win32API”:String (NoMethodError)

橙三吉。 提交于 2019-12-07 15:50:27
I'm just setting up a new server and want to install the Twitter gem but am running into problems on Ubuntu 8.04/Ruby 1.8.6 It says that "multi_json requires RubyGems >= 1.3.6", but running "gem update --system" obviously tries and updates to RubyGems 1.5 which can't be done on Ruby 1.8.6 and fails with the following error: undefined method `end_with?' for "no such file to load -- Win32API":String (NoMethodError) from ./lib/rubygems/config_file.rb:55 from ./lib/rubygems/custom_require.rb:29:in 'gem_original_require' from ./lib/rubygems/custom_require.rb:29:in 'require' ... Any ideas? Thanks

Problems installing RMagick with Paperclip in Rails 3

不羁的心 提交于 2019-12-07 15:13:18
问题 I'm trying to use paperclip in rails and when I'm doing the "bundle install" I'm getting the following error: Can't install RMagick 2.13.1. Can't find Magick-config in /usr/local/mysql/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/Users/seanhinton/.rvm/bin What I'm wondering is how do I install RMagick (is that what I need?) on my machine (it's OSX 10.6)? Cheers! 回答1: RMagick is a ruby adapter for ImageMagick. Getting

Activeadmin sortable by multiple columns

天涯浪子 提交于 2019-12-07 14:06:40
问题 Is there any possibility to sort activeadmin table using multiple columns? I've found an issue that says it is impossible now. But I wonder if anyone has implemented such functionality? 回答1: I've faced same issue. Judging by source code this feature isn't supported def sort_order(chain) params[:order] ||= active_admin_config.sort_order if params[:order] && params[:order] =~ /^([\w\_\.]+)_(desc|asc)$/ column = $1 order = $2 table = active_admin_config.resource_table_name table_column = (column

Jabber/XMPP gem for Rails 3.2 [closed]

独自空忆成欢 提交于 2019-12-07 12:24:42
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Im looking for a solid and working XMPP gem for rails 3.2 There are hundreds of them in the net, but most of them outdated or alpha. Can you recommend me one for rails 3.2? 回答1: The gem xmpp4r works fine. (https://github.com/ln/xmpp4r) Here is an example: require 'xmpp4r' sender_jid = Jabber::JID.new('a@b.com')