Questions tagged [ruby-1.9.2]

For issues relating to developing in Ruby, version 1.9.2. If your question applies to Ruby in general, use the tag [tag:ruby].

Related tags

234 questions
0
votes
1 answer

Trying to trace performance issue with mysql2 on rails 2.3

I have a strange problem with querying MySQL using ruby's mysql2 adapter. I'm using ruby-1.9.2-p290 and mysql2-0.2.18.gem (since mysql2 >= 0.3 has issues with Rails 2.3.14, which I'm bound to). It works fine except for a specific query I'm…
sa125
  • 28,121
  • 38
  • 111
  • 153
0
votes
1 answer

Error while mounting sinatra application in rails

I have a rails application that in turn uses sinatra app in it. I added this line to routes mount TestApp::Application => "/test_app" now while accessing /test_app routes it gives TypeError (no marshal_dump is defined for class Mutex) if ran…
ducktyped
  • 4,354
  • 4
  • 26
  • 38
0
votes
1 answer

Rubycas-server can not run on ruby 1.9.2

Tried to solve the problem particularly with rubycas-server which is based on sinatara Getting this error when running rubycas-server rubycas-server/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:148:in parse': couldn't parse YAML at…
Nauman Thanvi
  • 143
  • 2
  • 10
0
votes
1 answer

Ruby/Rails - Working with both ruby-mysql and mysql2

I'm migrating a very big Rails 2.3 application from ruby 1.8 to 1.9. Along the way, I've had some database encoding issues that, it seemed, could only be resolved by moving from the old ruby-mysql gem to mysql2. This has worked fine for all…
sa125
  • 28,121
  • 38
  • 111
  • 153
0
votes
1 answer

invalid byte sequence utf-8 error in rails 2.3 and ruby 1.9

I've migrated my app from Rails 2.3.8 / Ruby 1.8.7 to 2.3.14 / Ruby 1.9.2 - it hasn't been easy, but basically works. An issue I keep having is that in the occasional Haml template I'll get the following error: ActionView::TemplateError (invalid…
sa125
  • 28,121
  • 38
  • 111
  • 153
0
votes
1 answer

Ruby : How to make a HttpRequest

I'm still new in ruby, please help. I'm trying to make a http request in my standalone ruby script. #!/usr/bin/ruby require 'rubygems' require 'net/http' ... class someClass ... def get_ruby_doc request = HttpRequest.new(:get,…
jmsia
  • 43
  • 1
  • 1
  • 4
0
votes
3 answers

Why am I having trouble compiling Ruby 1.9.2 with RVM on Mac OS Lion?

I am having trouble installing Ruby 1.9.2 with rvm on Mac OS Lion. It gets stuck in the compilation stage; I don't see any errors or output, but it will be stuck at the compilation message for hours upon hours. The miniruby process is still running…
knt
  • 7,513
  • 4
  • 29
  • 24
0
votes
1 answer

Intercept find_by_attribute method active record

I have a model that has a cellphone Cellphones are store using a particular format in the database. I'd like to intercept User.find_by_cellphone("1234567890") and normalize the cellphone, then call the "real" find_by_cellphone("123-456-7890"). How…
daniel
  • 9,732
  • 7
  • 42
  • 57
0
votes
1 answer

Rails 3 - Devise user not clearing notice tag

I have an user managed by Devise. I am managing this user in my own views, creating a new user, or updating the existing ones. I have the following tag in my layout:

<%= notice %>

The problem is that when I update an user, I…
Tony
  • 10,088
  • 20
  • 85
  • 139
0
votes
1 answer

Not able to update ruby version from 1.8.7 to 1.9.2 using rvm

I am new to ruby programming and want to update ruby from 1.8.7 to 1.9.2. I have followed some steps from different sources but not able to get required result the sequence of steps are given below #apt-get install ruby-rvm #rvm remove 1.8.7 #rvm…
Jeet
  • 1,350
  • 1
  • 15
  • 32
0
votes
2 answers

Ruby 1.9.2 class_eval variables

In Settingslogic fork allowing array as source, in ruby 1.8.7 everything is working, but in ruby 1.9.2 there is an error. The problem is within this part of the code: self.class.class_eval <<-EndEval def #{key} return @#{key} if @#{key} …
santuxus
  • 3,662
  • 1
  • 29
  • 35
0
votes
1 answer

Rails 3 - link_to image in ruby 1.8 and 1.9

I have upgraded my localhost version of ruby from 1.8.7 to 1.9.2 and I got some errors in my templates. For example, in ruby 1.8.7 I use following: <%= link_to ((image_tag 'image.png', :alt => 'bla bla bal'), url_for(root_url), :id…
user984621
  • 46,344
  • 73
  • 224
  • 412
0
votes
2 answers

Ruby 1.8.7 -> upgrade to 1.9.2

I have my app built on Rails 3.0.9 and Ruby 1.8.7. My app works fine, but with one important negative: it's really slow. I have been looking for possible solution for this problem and the best solution seems to be upgrade of my current Ruby version…
user984621
  • 46,344
  • 73
  • 224
  • 412
0
votes
1 answer

problems installing ssl certificate

I successfully installed an SSL certificate on my website but Chrome strikes through "https" saying there are still some resources on the website that are not secure. I made sure there's no reference to http on my webpages and also replaced the…
rb512
  • 6,880
  • 3
  • 36
  • 55
0
votes
1 answer

Why does minitest crash before running tests in Rails 2.3.9?

I'm attempting to upgrade a Rails 2.3.9 app to work with Ruby 1.9.2-p290; previously the app worked with Ruby 1.8.7. I'm noticing a few quirks, the most remarkable is that I cannot run any tests in my app -- not individual tests and not rake…
richardsun
  • 3,245
  • 1
  • 18
  • 22