search for: p194

Displaying 20 results from an estimated 23 matches for "p194".

Did you mean: 194
2012 Oct 18
0
unexpected return (LocalJumpError) only when executing this code within autoloaded classes?
...hen I call it in `app/controllers/application_controller.rb` above or below the class definition, Rails dies during autoloading in activesupport-3.2.8/lib/active_support/dependencies.rb:469 due to an unexpected return (LocalJumpError). Here is the log: return /path/to/.rvm/gems/ruby-1.9.3-p194@some_app_gemset/gems/railties-3.2.8/lib/rails/initializable.rb.30 #<Binding:0x007ff7b1403d40> Rails::Initializable::Initializer run return /path/to/.rvm/gems/ruby-1.9.3-p194@some_app_gemset/gems/railties-3.2.8/lib/rails/initializable.rb.54 #<Binding:0x007ff7b14039a8> Rails::Initi...
2012 Oct 17
2
autolog: set_trace_func without all the typing
If it helps anyone developing Rails, apps, or gems, I wrote a shortcut for set_trace_func, so next time you want to just add a line before and after some function you are trying to debug you can have Ruby temporarily output every line, method, etc. executed. Also, it lets you define the format, use other loggers, etc. via a proc/lambda define, since you might not like the default format.
2012 Dec 12
1
#8498 postgres_adapter fix for disable_referential_integrity
...We are using it via an initializer (monkey patching the adapter directly vs. in module): https://github.com/rails/rails/pull/8498 Fixes this issue also seen by others in Foreigner: https://github.com/matthuhiggins/foreigner/issues/61 Problem that it resolves: /.../jenkins/.rvm/gems/ruby-1.9.3-p194@my_application/gems/activerecord-3.2.9/lib/active_record/connection_adapters/postgresql_adapter.rb:652:in `async_exec'': PG::Error: ERROR: permission denied: "RI_ConstraintTrigger_1234" is a system trigger (ActiveRecord::StatementInvalid) : (SQL here) from /.../jenkins/.rvm...
2012 Aug 08
5
Error Bundler
...reate vendor/assets/javascripts create vendor/assets/javascripts/.gitkeep create vendor/assets/stylesheets create vendor/assets/stylesheets/.gitkeep create vendor/plugins create vendor/plugins/.gitkeep run bundle install /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2632:in `error!'': 400 "Bad request" (Net::HTTPServerException) from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2641:in `value'' from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:795:in `connect'&...
2013 May 12
15
Advice needed --- Best way to get mysql2 gem installed to interact with Mysql Database?
...quot; does the same thing as below aborted output! I''m not sure that this website is being maintained anymore as their copyright notice is 2011. What/how suggestions appreciated to get this mysql2 gem installed so that i can use rails/ruby against this database? My ROR config: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.2.0] Rails 3.2.12 RVM gem managed So far Macport seems to work to install mysql and gen/install the mysql2 gem. I''ve not tried this gem yet as i''m still using RVM. I don''t believe this is the latest mysql release by Macport....
2012 Aug 31
1
after_fork - ActiveRecord::AdapterNotSpecified
...do |server, worker| ? defined?(ActiveRecord::Base) and ??? ActiveRecord::Base.establish_connection End but I always get the error: ERROR -- : ActiveRecord::AdapterNotSpecified (ActiveRecord::AdapterNotSpecified) I''m using unicorn (4.3.1), sinatra (1.3.2), activerecord (3.2.6), ruby 1.9.3p194 The app (test.rb): require ''rubygems'' require ''sinatra'' require ''active_record'' ActiveRecord::Base.establish_connection( ? :adapter => ''sqlite3'', ? :database => ''/tmp/dbfile'' ) class User < ActiveR...
2012 Jun 06
1
why to get the error 'undefined method `write_inheritable_attribute''
...85:in `<module:Generator>'' from /usr/share/rails-ruby1.8/railties/lib/rails_generator/base.rb:48:in `<module:Rails>'' from /usr/share/rails-ruby1.8/railties/lib/rails_generator/base.rb:6:in `<top (required)>'' from /home/caseyr/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'' from /home/caseyr/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'' from /usr/share/rails-ruby1.8/railties/lib/rails_generator.rb:34:in `<top (required)>'...
2012 Jun 26
2
Error with rake command
...I enter rake command it gives following error : ms@ms-HP:~/OpenStreetView$ rake WARNING: ''require ''rake/rdoctask'''' is deprecated. Please use ''require ''rdoc/task'' (in RDoc 2.4.2+)'' instead. at /home/ms/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/rdoctask.rb rake aborted! (<unknown>): did not find expected node content while parsing a flow node at line 18 column 14 (See full trace by running task with --trace) Please help me to solve this problem. And I also check rake command in Rails 3.2.6 applic...
2013 Feb 18
8
Error with service: "invalid byte sequence in US-ASCII"
I just built a new puppet master, and whenever I run puppet on it, it throws an error while processing a service resource: # puppet agent -t > Info: Retrieving plugin > Info: Caching catalog for i-45dc2b1d > Info: Applying configuration version ''g > 9ea47ad19bc706a754c00f00a024309948d3ea03'' > Error: /Stage[main]/Ipa::Client::Basic/Service[sssd]: Could not
2012 Nov 19
0
has_one :through NoMethodError: undefined method `klass' for nil:NilClass when doing class_name on reflection
...t it, as it''s not a big enough deal to look into a fix on our side. In Rails (3.2.9) console if I do: MyModel.reflections.each {|name,reflection| reflection.class_name } it raises: NoMethodError: undefined method `klass'' for nil:NilClass from /path/to/rvm/gems/ruby-1.9.3-p194@my_project/gems/activerecord-3.2.9/lib/active_record/reflection.rb:385:in `block in source_reflection'' from /path/to/rvm/gems/ruby-1.9.3-p194@my_project/gems/activerecord-3.2.9/lib/active_record/reflection.rb:385:in `collect'' from /path/to/rvm/gems/ruby-1.9.3-p194@my_p...
2012 Sep 26
2
Bundle Install ERROR: ERROR: Failed to build gem native extension.
Hello, I''m trying to setup postgreSQL onto rails on linux and when I type bundle install this is the error that i get. I guess its not finding the files Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /home/taka/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb checking for bzlib.h... no checking for BZ2_bzWriteOpen() in -lbz2... no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options....
2012 Apr 27
14
app error: Socket is not connected (Errno::ENOTCONN)
I''m getting the following errors multiple times per request when using 4.3.0. I do not receive any errors when using 4.2.1. Please CC me on replies, I''m not subscribed to the mailing list. 16:48:42 web.1 | E, [2012-04-26T16:48:42.733954 #87940] ERROR -- : app error: Socket is not connected (Errno::ENOTCONN) 16:48:42 web.1 | E, [2012-04-26T16:48:42.734193 #87940] ERROR
2012 Sep 18
13
pg gem error
gem install pg give the following error, please help how can i solve this Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to build gem native extension. /home/saravanan/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb checking for pg_config... yes Using config values from /usr/bin/pg_config checking for libpq-fe.h... yes checking for libpq/libpq-fs.h... yes checking for pg_config_manual.h... yes checking for PQconnectdb() in -lpq... no checking for PQconnectdb() in -llibpq... no checking for...
2012 Oct 01
1
active_model_serializers, more than one level deep of associations, specifying serializers per association
...odel_12s".* FROM "my_model_12s" WHERE "my_model_12s"."my_model_10_id" = 123 Completed 500 Internal Server Error in 824ms SystemStackError (stack level too deep): actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:70 Rendered /path/to/ruby-1.9.3-p194@my_project/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms) Rendered /path/to/ruby-1.9.3-p194@my_project/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms) Rendered /path/to/ruby-1.9.3-p194@my_pro...
2012 Nov 09
8
method conditional option pattern
When I have this pattern sign_me(@user, :event => :authentication, :subdomain => subdomain) how can I write it to avoid sending the :subdomain option if subdomain.nil? ( if possible ..) sign_me(@user, :event => :authentication #?, :subdomain => subdomain unless subdomain.nil? ) -- You received this message because you are subscribed to the Google Groups
2013 May 14
1
rvm/capistrano
When I ran cap deploy:setup, the following actually installed rvm, ruby and the online_store gemset on my staging server: set :rvm_ruby_string, ''ruby-1.9.3-p0@online_store'' set :rvm_autolibs_flag, "read-only" set :rvm_type, :system set :rvm_install_with_sudo, true before ''deploy:setup'', ''rvm:install_rvm'' # install RVM before
2012 Nov 28
1
Unable to configure Puppet-dashboard using opensource package
...initialize called from /opt/puppet-dashboard/vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:100. NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01. Gem::SourceIndex#add_spec called from /usr/local/rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/source_index.rb:91. ------------------------- # ruby -v ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux] ------------------ rack (1.4.1, 1.3.5, 1.1.0) rack-cache (1.2) rack-openid (1.3.1) rack-ssl (1.3.2) rack-test (0.6.1) rails (3.2.6) railties (3.2.6) raindrops (0.1...
2012 May 10
1
getting started with jQuery rails 3.2
Hi all, I''m trying to work out how to get started using some jQuery in my rails app. rails -v = 3.2.2 ruby -v = 1.9.3-p194 I''m only sporadically a web-developer, and still quite inexperienced with jQuery especially, so I may be making an obvious mistake. Essentially, I''ve done very little after creating a new app, I''ve learnt that jQuery is included by default with the gem ''jquery-...
2012 Aug 25
2
cannot bundle install due to missing therubyracer
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux] rails 3.1.3 Ubuntu 10.04 LTS I have another environment with MacOSX Snow Leopard, and am sharing the Rails project files through Dropbox. When I chose to develop a project further in this Ubuntu machine, I have executed ''bundle install'' wh...
2013 Feb 10
1
How to add body parameter in Serel gem (stackoverflow api)
Actually when i try to access a question using serel gem(which is a ruby wrapper for stackoverflow api), i get an object with no body parameter included in it. questions = Serel::Question.find(id) see http://api.stackoverflow.com/1.1/usage/methods/questions-by-ids. According to this, we need to turn the body parameter true. How to turn the parameter "body" true. -- You received