Displaying 20 results from an estimated 2000 matches similar to: "superclass mismatch for class Tag (TypeError)"
2006 May 18
1
Unnecessary Gem modules loaded under Rails 1.1.2
All,
Rails 1.1.2
Win XP Pro
Rubyful Soup 1.0.4
htmltools 1.0.9
I am terribly confused as to what pulling in a gem does with respect to
how many modules get loaded at runtime.
I am using two gems in my app, Rubyful Soup and htmltools.
RubyfulSoup requires one module from the htmltools gem
(html/sgml-parser).
My app requires the RubyfulSoup gem.
When I started my app, something was causing
2006 May 30
0
Problems when applying search to filter rows.
Hello,
I am trying to create in the main Layout of the application fields of
selection of fields of the model, and other to insert its value. Next I put
a search button, with the idea to leak by the search in the view of the
model where it executes this button. I have generated the views with
ajaxscaffold.
I do not know if what I try to do it does of this form or another one.
My code is the
2006 Jun 23
0
Date class giving errors
Any time I try to use any methods of the Date class, I get errors of
''invalid date''. For example, I have this happening:
With the code Date.today, I get this error from Rails:
- - - - - - - - - -
ArgumentError in Student#show
Showing app/views/student/show.rhtml where line #10 raised:
invalid date
Extracted source (around line #10):
7: <p> <%=
2006 Apr 21
3
Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id
Hi
I am a newbie to Ruby on Rails, but experienced in programming.
I am trying out Rolling with Ruby on Rails article by Curt Hibbs on
onlamp.com. I have encountered following error:
Called id for nil, which would mistakenly be 4 -- if you really wanted
the id of nil, use object_id
I searched the archives of the list and found that similar
question was left unanswered. I do understand from
2006 Nov 24
0
Strange "camelize" error when running fresh rails install on Hoary
Hi everyone,
Just wondering if anyone had seen this before. I did a simple install
following Paul Goscicki''s tutorial
(http://paulgoscicki.com/archives/2005/09/ruby-on-rails-on-ubuntu/) and
I get this message when I type "rails test" from the command line.(I''m
running Ubuntu 5.04 Hoary)
could anyone point me in the right direction? thanks.
--max
2006 Jun 28
0
class Tag in both acts_as_taggable and RubyfulSoup
I''m starting to use RubyfulSoup (http://www.crummy.com/software/
RubyfulSoup/), but my Rails app already uses acts_as_taggable.
RubyfulSoup has a Tag class. In order to get the Tag <<
ActiveRecord::Base and this Tag to co-exist, I had to rename the
RubyfulSoup class to TagSoup. This seems to work so far.
This is almost certainly not the best way to do it, but until I run
2006 Jun 23
1
rubyful_soup works fine as an RB file but bugs in Rails
This is the code:
1 require ''rubyful_soup''
2 require ''open-uri''
3
4 url = "http://www.google.com/search?q=ruby"
5 open(url) {
6 |page| page_content = page.read()
7 soup = BeautifulSoup.new(page_content)
8 result = soup.find_all(''a'', :attrs => {''class'' => ''l''})
9 result.each {
2006 Apr 10
0
TaskThis undefined method `remembrall_expires'' for #<User:0x
This happens before each login attempt.
Please note that if I click on the refresh button of my browser I then
login succesfully.
Any hint?
--
fabio vitale
NoMethodError in AccountController#login
undefined method `remembrall_expires'' for #<User:0x351f238>
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
2006 Mar 22
2
RubyGem loading into a controller (High quality question)
INSTALLATION:
Ruby 1.8.2
Rails 1.0.0
rubyful_soup 1.0.4 (GEM)
FACTS:
0) I have successfully installed the rubyful_soup GEM using (I had
previously installed it, which is why the output may look sparse):
C:\ruby>gem install -r rubyful_soup
Attempting remote installation of ''rubyful_soup''
Successfully installed rubyful_soup-1.0.4
Installing RDoc documentation for
2007 Feb 05
0
superclass mismatch for class OrderedOptions (TypeError)
ngw@adreadedsunnyday ~/projects/hotchalk$ script/server
./script/../config/boot.rb:28:Warning: require_gem is obsolete. Use
gem instead.
/opt/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:606:
superclass mismatch for class OrderedOptions (TypeError)
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/
custom_require.rb:27:in `gem_original_require''
from
2006 Apr 17
7
Action Controller: Exception caught
Hi, I''m running the cookbook example from ONLamp.com. I have tried to
test my site and it comes up with the the message on the site:
ActiveRecord::StatementInvalid in RecipeController#index
Mysql::Error: Lost connection to MySQL server during query: SHOW FIELDS
FROM recipes
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
2006 Jul 22
1
How to debug this
Hello,I get this message and I don''t know how to interprete this.I think it has to do with plural tables and singular referencesThanks for any help!Jim======================================================================================uninitialized constant SubjectRAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
2006 Apr 09
1
PageSweeper not working since upgrading to 1.1.1
Hi, I upgraded from 1.0 to 1.1.1, now my cache sweepers acts up.
They worked perfectly before he upgrade, now I get strange errors.
I have an empty controller, it looks like this:
class PageElementsController < ApplicationController
cache_sweeper :element_sweeper
def element_container_show
render :inline=>""
end
end
The sweeper looks like this:
class
2006 Feb 13
3
TypeError
What might cause this error?
TypeError (singleton can''t be dumped):
/usr/lib/ruby/1.8/pstore.rb:159:in `dump''
/usr/lib/ruby/1.8/pstore.rb:159:in `dump''
/usr/lib/ruby/1.8/pstore.rb:138:in `transaction''
/usr/lib/ruby/1.8/cgi/session/pstore.rb:90:in `update''
/usr/lib/ruby/1.8/cgi/session/pstore.rb:97:in `close''
2006 Jun 14
5
uninitialized constant error after scaffold on new Windows XP environment
I am attempting to get a working Rails programming environment setup working
under XP with MySQL, RadRails and Webrick. I have been using my PowerBook
but need to working on Windows environment too.
I have basic functions of Ruby and Rails going. I created a really simple
table and generated the scaffolding. The server starts just fine. I can
browse the database succesfully in RadRails. The issue
2006 Jun 19
3
Strange behavior of :through association.
class Host < ActiveRecord::Base
belongs_to :person
end
class House < ActiveRecord::Base
has_many :people, :dependent => true
has_many :hosts, :through => :person
end
class Person < ActiveRecord::Base
belongs_to :house
has_many :hosts, :dependent => true
end
Now when I try to do:
@hosts = House.find_by_id(params[:namas]).hosts
from my controller I get this:
2009 Apr 06
3
After Rails 2.3.2 upgrade: superclass mismatch for class TestCase (TypeError)
I upgraded a working app from rails 2.1 to 2.3.2. Now when I run rake
test:units I get this error: /usr/lib/ruby/gems/1.8/gems/
activesupport-2.3.2/lib/active_support/test_case.rb:17: superclass
mismatch for class TestCase (TypeError)
I generated a new test app and all tests run OK.
For the upgrade I ran rake:update and renamed the class in test_helper
to ActiveSupport::TestCase. Also renamed
2009 Feb 03
2
Rails 2.3 problem...
When moving to Rails 2.3.0RC1 I get an error with concat!? I can''t
figure it out. See the dump below:
ActionView::TemplateError (You have a nil object when you didn''t expect
it!
You might have expected an instance of Array.
The error occurred while evaluating nil.<<) on line #158 of
app/views/places/show.html.erb:
158: <div
2007 Dec 17
0
[CruiseControl] RubyOnRails build 8425 failed
The build failed.
CHANGES
-------
Revision 8422 committed by david on 2007-12-16 23:53:45
Add tests for html_escape, and remove an unneeded backslash (closes #10511) [fxn]
M /trunk/actionpack/lib/action_view/template_handlers/erb.rb
A /trunk/actionpack/test/template/erb_util_test.rb
Revision 8423 committed by david on 2007-12-16 23:55:22
Fix doc (closes #10526)
M
2006 Jan 12
0
testing
I''m looking for a good way to make all of Rails'' inbuilt helpers
available to my custom Helper while I''m testing it.
The Helper I''m testing is EditorHelper. EditorHelper itself relies on
some of Rails'' inbuilt Helpers, such as JavaScriptHelper and
UrlHelper. These are automagically available when called on within an
ERB template, but not when called by