similar to: Model inheritance is borken in Rails1.1

Displaying 20 results from an estimated 4000 matches similar to: "Model inheritance is borken in Rails1.1"

2006 Apr 17
7
Should Perl talk to Rails via LWP
Hi folks, I need your opinions on a basic design issue. I''ve seen the light of RoR and have replaced my Perl (DBI/CGI) based web server <-> RDBMS communication with RoR, but I still have a whole host of users (other servers/OS''s etc) out there wanting to talk to my RDBMS and they only talk Perl. Also they don''t want to talk Perl/DBI directly (they are not allowed
2006 Apr 17
5
Strange question on file_column
I have met a very strange problem on file_column usage. After I have added file_column :image to the model,everything is ok. But after I added more: file_column :image, :magick => {:versions => { :thumb => {:size => "50*50"}, :medium => {:size => "640*480>"}}} I can not even start the whole website! Here is the
2006 Apr 04
2
HABTM
Hi. Im new to Ruby and new to Ruby on Rails and have problems realizing a =20= simple many_to_many relationship: My tables: items <-> items_users <-> users ------------------------------------------------------------------------=20= -------------------------------------- id user_id = id name item_id name ... = password = ...... My Code: class
2006 Apr 21
10
Paypal payments and IPN
I have followed the instructions over at http://dist.leetsoft.com/api/paypal/ In order I: 1. installed the money library with gem install --source http://dist.leetsoft.com/api/paypal/ money 2. installed the paypal library with gem install --source http://dist.leetsoft.com/api/paypal/ paypal 3. created a new app with rails NewApp 4. added the PaymentHelper module to the
2006 Mar 28
8
1.1 broke my app
I upgraded to Rails 1.1 (ruby 1.8.2 and ruby 1.8.4 on RHEL 4 using webrick or fastcgi) and all of a sudden I get this hitting a controller: wrong number of arguments (1 for 0) RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/base.rb:379:in
2006 Jun 13
6
tax a reserved word?
Is tax a reserved word or am I sleep deprived?? I''m working on a shopping cart and have a table called sales_taxes (at first i named it taxes). I get the following error when i load the controller: uninitialized constant SalesTaxis RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace
2006 Aug 15
5
ActiveRecord inheritance
Hello, I got the following issue and I do not know how to resolve it: #1. created parent class (AccountExtended) for some my models (lib/classes_lib.rb): class AccountExtended < ActiveRecord::Base def self.findByAccount end end #2. created model Country: require ''lib/classes_lib'' class Country < AccountExtended end #3. and added a test controller what shows
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 Jul 26
1
Scaffolding Problems
Hi.. Im a brand new ruby on rails developer, and when i make a scaffold and navigate to the it, i get an error that looks like this. ----------------------------------------------------------------- NameError in PagesController#list uninitialized constant Page RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace
2006 May 17
3
Help mixin in class methods
Starting to feel more confident and code is DRYing up nicely, but I''ve hit a brick wall here and hoping someone can help me. I''ve got a module, TrustRanking, which extends a number of model''s instance methods, and I want to extend their class methods too, but I can seem to work out how to do it. Simply including the module from the class works a treat for the
2010 Feb 06
4
500 Internal Error
I have on ubuntu a digital library application Kete which gives in the log/production.log: Please help, thnx. /!\ FAILSAFE /!\ Fri Feb 05 19:05:08 +0200 2010 Status: 500 Internal Server Error No connection to server (localhost:11211 DEAD (Errno::ECONNREFUSED: Connection refused - connect(2)), will retry at Fri Feb 05 19:05:38 +0200 2010)
2006 Mar 29
5
MySQL losts connection, can''t refer to User
Hi Another problem here. After the upgrade to 1.1 both rails and engines, my app on windows crashes very often on requests. It can''t refer to User model or losts connection to mysql. It appears like 2-3 times per 10 requests. Eg. Mysql::Error: Lost connection to MySQL server during query: UPDATE sessions SET `data` =
2008 Jul 09
11
script/generate scaffold user
NameError in UsersController#index uninitialized constant UsersController::User RAILS_ROOT: C:/RailsApps/rgams Application Trace | Framework Trace | Full Trace c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:492:in `const_missing'' app/controllers/users_controller.rb:5:in `index''
2006 May 09
6
Create checkboxes on page using contents of a hash
Hi all, I have a hash that is created in the index method of my controller. After it is created, the index.rhtml page is rendered. Upon this rendering I would like to create a check box for each key/value in the hash. The has is @recordsHash I have been trying varying stratagies like the one below, but to no avail. Do you have any ideas? Thanks for your help on this! html
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
2005 Apr 06
3
NameError in <controller not set>#<action not set>
I can''t figure out why I''m getting the following error. There''s nothing wrong in my communities_controller file. And the helper for communties exists. Any ideas? Thanks, Joe NameError in <controller not set>#<action not set> uninitialized constant CommunitiesHelper app/controllers/communities_controller.rb:1 script/server:48 Show framework trace
2006 Apr 14
5
state_models plugin and file_column?
I was looking at Kyle Mawell''s extremely nifty-looking StateModels plugin http://www.kylemaxwell.com/articles/2006/02/06/fun-with-single-table-inheritance and before I go down the road with it, I was wondering if anyone has used it with file_column. The way file_column deals with an uploaded file -- by storing it to the filesystem in a path that employs the model name and id --
2007 Jul 07
6
Help in upgrading from 1.1.6 to 1.2.3
Hi, I was developing a rails app with version 1.1.6 that just worked fine. I decided to upgrade to 1.2.3 and then, I keep getting that horrible message: "Application error Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html" Now, before starting script/server I modiffied config/environment.rb and
2006 Feb 16
5
Edge Rails, Ruby 1.8.2 and "uninitialized constant ''modelname''" error
I know it might seem like I am repeating myself but I can''t seem to find the solution to my problem. I am trying to run edge rails using "rake freeze_edge" and every time I do that my application stops to work. I get an error on every page. I get a "uninitialized constant modelname" error where modelname is the object being created for that view Has
2006 Jan 09
1
Cooky Cookies
Hi All, I have a problem with the stemming(?) in rails. I have a table cookie and a Cookie model which I have generated a scaffold for. The problem is that rails starts looking for a file that it calls "cooky.rb", this must be some kind of misunderstanding between me and rails, but how do I correct it? Other scaffolds work just fine. /Hugo NameError in Cookie#index uninitialized