similar to: unexpected results when extending methods to class Class and class Object

Displaying 20 results from an estimated 2000 matches similar to: "unexpected results when extending methods to class Class and class Object"

2011 Feb 10
8
rvm install 1.8.7 prompts "There has been an error while running make. Halting the installation."
I want to work with both Rails 2 and Rails 3 projects. I have RVM installed. When I upgraded to Rails 3, Installed RVM via terminal: bash < <( curl http://rvm.beginrescueend.com/releases/ … ll-latest) version=$(curl http://rvm.beginrescueend.com/releases/ … sion.txt); mkdir -p ~/.rvm/src/ && cd ~/.rvm/src/ && curl -O http://rvm.beginrescueend.com/releases/ … on}.tar.gz |
2011 Feb 09
16
rails 3.0.4 broke yield :javascript ?
hello, I have today updated my rails app to 3.0.4 security release but now this yield :javascripts fails in the layout and I get my custom js escaped as text in the view. anybody seeing this also? tia, jk -- www.least-significant-bit.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to
2005 Oct 03
2
ethool for e1000
I recently noticed that after starting xend ethtool no longer work for my e1000 card. In my 2.X box which is a P4, ethtool is working after xend start. Same version of e1000 on both boxes. The unstable box is a Tyan 2462 SMP, FC4 dom0 The 2.X box is Dell P330 UP, Centos 4.1 domO Until xend start ethtool is fine, in both setups I am using the e1000 as eth0. Regards, Ted
2007 Oct 20
14
Problems with form_for and partials
i''m having problem with a form_for situation where i''m trying to DRY out the repeated parts of my forms and put them in common/form and render the form elements via another partial in controller_name/_form. Here''s the first form # app/views/common/form <% form_for ... do |f| -%> <%= render :partial => "params[:controller]/form", :object => f
2006 Mar 04
6
Determine if a value is an instance of String , or Array , or...
each loop inside a mixed hash I need to determine if the value is an instance of String How ? hash.each do |k,v| if v ( instance of ) String hash[ k ] = v.capitalize enf end
2011 Jan 26
0
[Rails 2.3.10] uninitialized constant ActionController::AbstractResponse
I am testing some code under 2.3.10 ( w ruby 1.8.7) and when trying only to start the console , I get the error : ===== /gems/activesupport-2.3.4/lib/active_support/dependencies.rb:440:in `load_missing_constant'':NameError: uninitialized constant ActionController::AbstractResponse ruby-1.8.7-p330 :001 > I cannot see what happen in any log ... where or how can i get some info on the
2012 Jan 24
7
Ruby update
Hello, I''m using instantrails 2 to develop RubyOnRails projects on windows and need to update my ruby version to 1.8.7 (I''m still using 1.8.6). I downloaded ruby 1.8.7 here http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7.zip and unzipped files in the ruby folder of instantrails but when I check "ruby -v" I still got 1.8.6 (I tried a gem update and same thing, some gems
2006 Mar 12
2
Find all the methods on a object in an irb session?
How can I find all the methods on an object from withing irb? Thanks, Joe
2011 Jan 13
5
undefined method `xss_terminate'
I''m trying to run a rails app developed by my firm on my Ubuntu machine. I''m using RVM with what I think are all the appropriate gems installed. The application works fine on co-workers OSX machines. When running db:migrate I get the following error: $ rake db:migrate --trace ... rake aborted! An error has occurred, all later migrations canceled: undefined method
2013 Nov 16
4
CentOS as Development Laptop?
Hi, Is CentOS good for a desktop machine? I have been using Fedora but the whole GNOME 3 debacle has me scrambling for something else. I have a few "minimal" CentOS servers but does anyone here use CentOS on their laptop? Does wireless and suspend work ok? Are there packages for the usual desktop stuff like libreoffice, sylpheed and so on? Machine is Toshiba Portege R935. It's
2006 Jul 05
2
Serialized object behaves weird
Hi! I got a class named EinsatzFilter which I serialized to session. Before saving to session it works afterwards I keep getting the message: "undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from ActiveRecord::Base inherited class. Code: class EinsatzFilter include ApplicationHelper attr_reader :personen, :monat, :projekte, :kunde
2006 Jun 30
6
RSS::Parser Documentation
Hi I am trying to use the RSS classes from "rss/2.0" and everything works but I want to know what attributes and properties I can get at from each of the classes I am getting back. For example, the class has a "channel" which I can tell has a "title" attribute (because it works when I query it :) but I would really like a list of every attribute that is
2011 Mar 14
0
Problems with viewing my calendar
Hey dudes, i''m trying to build a small calendar into my app. I follow the steps shown in http://railscasts.com/episodes/213-calendars, so i go with the table_builder gem, which allows to use the calendar_for command. But unfortunately it doesnt work or rather show the results in my view-template. I even got no error-message. It only shows this: (twice!!?!) Calendar < March 2011 >
2008 Jan 28
9
Nested matchers
We''re encountering a failure with Mocha 0.5.6. We had this expectation: game_version.expects(:attributes=).with(:game_file => kind_of(GameFile), :game_id => @game.id) This expectation was passing with 0.5.5, but fails with 0.5.6. I added this test to parameter_matcher_acceptance_test.rb, which passes in 0.5.5 and fails in 0.5.6 def test_should_match_nested_parameters
2009 May 18
3
Pagination
Hi, I am using the will_paginate plugin for my application. It is showing Previous 1,2,3...22,23,24 Next links How will I hide the numbers? I want to have first and last links also. How will i do that? Thanks in advance. -- Posted via http://www.ruby-forum.com/.
2005 May 08
3
Overriding date_select in local project to use custom value rather than blank for starting option...
I would like to have a date control on a page and I would like a behavior similar to what you get using date_select with the :include_blank => true option where the first value in the dropdown is "- Month -", "- Day -", or "- Year -" rather than a blank value for the respective month, day, and year select fields. I took a look at the ruby source for
2005 Dec 27
3
myObject.send(column.name) from Agile Development book
I''m studying the Agile Development with Rails book. In the chapter that first sets up the depot application (page 68), there is this bit of code from a view: <% for product in @products %> <tr> <% for column in Product.content_columns %> <td><%=h product.send(column.name) %></td> <% end %> etc... I am trying to absorb both Ruby and
2006 Sep 13
1
Net::HTTPResponse
Hello :) I have a problem with the Net::HTTP library... The Net::HTTP library [1] uses a Net::HTTPResponse object for all it''s responses from web servers. This class has many subclasses, such as HTTPSuccess, HTTPRedirecttion, etc. When obtaining a response, the library suggests to check what it is by testing the class of the returned object - using case/when or kind_of? (which it does
2012 Sep 22
4
Class, Module, Object
>> reload! Reloading... => true >> puts Class < Module true => nil >> puts Module < Class false => nil >> puts Module < Object true => nil >> puts Object < Module false => nil >> Object.parent => Object The above indicates that the Class object instance inherits from the Module object instance and the Module object instance
2005 Mar 09
21
Converting time retrieved from MySQL
I''m having a problem converting a date retrieved from my MySQL database and I''m hoping someone can help. MySQL stores the date/time as this: 2005-03-08 17:00:34.0 and according to my Pickaxe book Ruby stores times as "the number of seconds and microseconds since [...] January 1, 1970". All well and good. Unfortunately, RoR is converting my date to this: