search for: p136

Displaying 20 results from an estimated 20 matches for "p136".

Did you mean: 136
2011 Feb 05
1
ActionMailer::Base.default_url_options
...efault_url_options = { :host => "localhost" } in my environments (test.rb, production.rb, ...). The problem is, I get a deprecation error and rails won''t start. I have no solution... Any hints for me? Testing started at 16:31 ... /Users/sebastian/.rvm/gems/ruby-1.9.2-p136/gems/actionmailer-3.0.3/lib/action_mailer/base.rb:763:in `deprecated_url_options'': You can no longer call ActionMailer::Base.default_url_options directly. You need to set config.action_mailer.default_url_options. If you are using ActionMailer standalone, you need to include the routing...
2011 Mar 22
2
Problems with SQLite3
...s error message, but didn''t find anything useful. BTW, there is nothing special in the migration script: class CreateProducts < ActiveRecord::Migration # ... def self.down drop_table :products end end Example 2: > rake test Loaded suite /home/vlad/.rvm/gems/ruby-1.9.2-p136/gems/rake-0.8.7/lib/rake/rake_test_loader Started E Finished in 0.046598 seconds. 1) Error: test_product_attributes_must_not_be_empty(ProductTest): SystemStackError: stack level too deep /home/vlad/.rvm/gems/ruby-1.9.2-p136/gems/rails_sql_views-0.8.0/lib/rails_sql_views/connection_adapters/a...
2011 Mar 03
1
Does RSpec interfere with Pathname#dirname or Pathname#realpath ?
Hi, I starting a new project, and have run into behavior I cannot replicate in irb, (i.e. outside of using rspec) when the directory? returns true, so I thought I''d ask here, in case any one has seen this badhavior. ruby-1.9.2-p136 rspec (2.5.0) rspec-core (2.5.1) rspec-expectations (2.5.0) rspec-mocks (2.5.0) When I try to run this spec: require Pathname(__FILE__).ascend { |d| h=d+''spec_helper.rb''; break h if h.file? } describe B3::Bdd do it "should indicate RVM is installed locally" do B3...
2011 Apr 12
4
OS X - `require': no such file to load -- sqlite3/sqlite3_native
...on/ruby/1.9.1/gems/sqlite3-1.3.3/lib/sqlite3.rb:6:in `rescue in <top (required)>'' from /Volumes/Macintosh HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/sqlite3-1.3.3/lib/sqlite3.rb:2:in `<top (required)>'' from /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler/runtime.rb:68:in `require'' from /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler/runtime.rb:68:in `block (2 levels) in require'' from /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136...
2011 Feb 09
0
Mysql2::Error: SAVEPOINT active_record_1 does not exist
...mlUpload.create(:xml_contents => contents = file.read) ..... ..... end The create line is throwing up the following error ActiveRecord::StatementInvalid: Mysql2::Error: SAVEPOINT active_record_1 does not exist: ROLLBACK TO SAVEPOINT active_record_1 /Users/conor/.rvm/gems/ruby-1.9.2-p136/gems/activerecord-3.0.3/lib/ active_record/connection_adapters/abstract_adapter.rb:202:in `rescue in log'' /Users/conor/.rvm/gems/ruby-1.9.2-p136/gems/activerecord-3.0.3/lib/ active_record/connection_adapters/abstract_adapter.rb:194:in `log'' /Users/conor/.rvm/gems/ruby-1.9....
2011 Feb 06
1
Psych can't load LaTeX entities file
...here, I wanted to use RedCloth with my RubyOnRails 3 application, but it seems that RoR uses 1.9.2''s Psych by default as the YAML parser if available, and Psych fails to load the LaTeX entities file: ==================================================================== #ruby -v: ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-linux] irb(main):001:0> Dir.pwd => "/opt/rubies/ruby-1.9.2-p136/lib/ruby/gems/1.9.1/gems/RedCloth-4.2.3/lib/redcloth/formatters" irb(main):002:0> YAML => Psych irb(main):003:0> YAML.load_file("latex_entities.yml") Psych::SyntaxE...
2011 Feb 06
2
Controller Testing + Devise = boom (undefined @controller, request)
...roller: nil" F Failures: 1) VideosController new exposes request and response before and after the action Failure/Error: Unable to find matching line from backtrace NoMethodError: undefined method `request'' for nil:NilClass # /Users/peter/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/whiny_nil.rb:48:in `method_missing'' # /Users/peter/.rvm/gems/ruby-1.9.2-p136/gems/devise-1.1.5/lib/devise/test_helpers.rb:20:in `initialize'' # /Users/peter/.rvm/gems/ruby-1.9.2-p136/gems/devise-1.1.5/lib/devise/test_helpers.rb:...
2011 Feb 10
8
rvm install 1.8.7 prompts "There has been an error while running make. Halting the installation."
...ile and added the below line of text: [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" Then I type: rvm install 1.9.2 it did some stuff and then suddenly aborted: Error running ''make '', please read /Users/jmerlino/.rvm/log/ruby-1.9.2-p136/make.log There has been an error while running make. Halting the installation. Then I did the following: $ rvm package install readline $ rvm remove 1.9.2 $ rvm install 1.9.2 --with-readline-dir=$rvm_path/usr $ cd $HOME/.rvm/src/ruby-1.9.2-p0/ext/readline $ ruby extconf.rb $ make install So I fi...
2011 Jun 17
7
Encoding
What''s a good solution for fixing character encoding problems for compatibility between ascii and utf-8? The database is postgres and is encoded in utf-8. Once in awhile there will be a compatibility error from strings from a webform. Is there a command to fix this besides using a_string.force_encoding(''utf-8'')? Even this doesn''t seem to always work either.
2011 Feb 07
0
Error loading rubygems
...nned that the problem could come from the existance of multiple versions of ruby on the machine. Actually that was the case, so I decided to run a fresh installation of ruby and rails using RVM. But I still have the same problem! Additional information: which ruby /usr/local/rvm/rubies/ruby-1.9.2-p136/bin/ruby which rails /usr/local/rvm/gems/ruby-1.9.2-p136/bin/rails which gem /usr/local/rvm/rubies/ruby-1.9.2-p136/bin/gem gem --version 1.5.0 ls /usr/lib/ruby 1.8 1.9.1 gems Any idea? Thanks! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:...
2011 Jan 08
6
Need help in Installing Rails 3.0.3
This is my gem env RubyGems Environment: - RUBYGEMS VERSION: 1.3.7 - RUBY VERSION: 1.9.2 (2010-12-25 patchlevel 136) [i686-linux] - INSTALLATION DIRECTORY: /home/arjunkishore/.rvm/gems/ruby-1.9.2-p136 - RUBY EXECUTABLE: /home/arjunkishore/.rvm/rubies/ruby-1.9.2-p136/bin/ruby - EXECUTABLE DIRECTORY: /home/arjunkishore/.rvm/gems/ruby-1.9.2-p136/bin - RUBYGEMS PLATFORMS: - ruby - x86-linux - GEM PATHS: - /home/arjunkishore/.rvm/gems/ruby-1.9.2-p136 - /home/arjunkishore/.rv...
2011 Mar 29
18
Rails 3.0.6.rc1
ZOMG HAPPY TUESDAY (UTC-7)!!! <3<3<3<3<3 I am happy to announce that the first release candidate for Rails 3.0.6 has been pushed to rubygems.org. ## Release Candidate: What does it mean? The release candidate is very similar to what we will actually release for version 3.0.6. The reason that we release an RC is so that the community can have a chance to postpone or veto commits
2010 May 26
25
Extremely slow start up with ruby 1.9.1 vs 1.8.7
I created a fresh new rails app, no gems, no nothing. Completely unmodified. Doing anything that initializes rails takes 2 - 3 times longer in ruby 1.9.1 than it does in 1.8.7. Obviously with a fresh rails app, this is only 2 - 3 seconds extra. But with a decent sized app, this can take up to 25 seconds for rails to initialize, vs the 12 seconds in 1.8.7. I''ve been racking my brain on
2011 Jan 10
2
Problem with multiple requires in Ruby DSL
...may not be related to the DSL. When trying to have a resource have a simple dependency on two things at once, it simply fails, and I''m stumped as to why. The error message is: Parameter require failed: No title provided and "[ Exec[git-/usr/local/ resque-runner], Rvm_install[1.9.2-p136]]" is not a valid resource reference My definition looks like this: define :bundle_install, :rvm do rvm_exec "bundle-#{@name}", :command => "bundle install --without production", :ruby => @rvm, :path => "/bin:/usr/bin:/sbin...
2011 Jan 23
2
How I do to run Rails on Apache?
Scenario: Windows Vista - Rails 3.0.3 - Rub(ies)1.9.2-p136 & 1.8.7p330 - MySQL5.5 - Apache2.2 - git/cygwin -everything setup and working, BUT WEBrick is becoming temperamental. I want to run Rails on Apache. Is it possible? What should I do. I made some simple tests like build applications with Ruby 1.9.2 and after with 1.8.7. Rails on WEBrick set th...
2011 Mar 18
2
How do I delete multiple blank variables from a data frame?
...ch with 272 variables and 267 observations. Some of these variables are blanks but the blanks are not the same for every data frame. I would like to write a procedure in which I import a data frame, see which variables are blank, and delete those variables. My data frames have variables named P1 to P136 and Q1 to Q136. I have a couple of questions regarding this issue: 1) Is a loop an efficient way to address this problem? If not, what are my alternatives and how do I implement them?2) I have been playing with a single data frame to try to figure out a way of having R go through the columns and s...
2011 Apr 01
0
package MICE, squeeze function, calling several variables at once
Hello everyone!I have a data set with missing observations that I am trying to impute. I am using MICE and I would like the imputed values to all be positive. I have two types of variables: prices (P1 to P136) and quantities (Q1 to Q136) and I also want the range of these two types to be different. Besides these variables. I am using the squeeze function but I am unable to set it such that I don't have to write the names of all the variables. Also note that I do not have all the 136 Ps and Qs becaus...
2011 Mar 01
11
Did rails or shoulda go insane on the inflection of 'taxes'?
I have a model ''xp_jurisdiction_taxes'' which rails (3) created correctly. Another model ''xp_jurisdiction_states'' has many :xp_jurisdiction_taxes. In my spec I am using a shoulda helper to test the association but get the following error. BTW, greped the whole project just in case and the string ''taxi'' exists nowhere. 1)
2011 Aug 09
5
Bundle Install failing on deployment
...to try installing it on its own, to see if that helps bundler. I need 3.1.0 so would be grateful of any pointers so I can get this sorted. I will look into using RVM on the server, but would like to know what the issues are here if anyone can help, rather than ignore or gloss over it. Ruby 1.9.2-p136 Server OS: Centos 5 Bundler: 1.0.15 RubyGem: 1.8.7 Thanks Paul -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscri...
2011 Feb 01
10
SSL problems with RoR, MySQL and Apace
Hello All - This is my first post into this forum and somewhat of a newb to RoR so I''m hoping someone can help. I currently have a RoR app that runs on Ubuntu with Apache and Mysql. There are two issues I''m having and they are causing me to bang my head against the wall. First one is RAILS_ENV: If I run ruby script/console it says that my environment is development