similar to: ActiveRecord inheritance

Displaying 11 results from an estimated 11 matches similar to: "ActiveRecord inheritance"

2006 Aug 16
4
Undefined method - what undefined method
I am doing a typical database list, but when I do <% for m in @private_messages %> (Line 28) It tells me that the method ''each'' is undefined. What''s wrong, I did not call the method each.... Here''s the error: Showing app/views/account/mail.rhtml where line #28 raised: undefined method `each? for #<PrivateMessage:0x408bb830> Extracted source
2010 Nov 30
4
Cucumber+Capybara rails 3 issue (Don't know where exactly)
When I''m executing cucumber tests, I noticed that sometimes rails app (in test env.) getting several the same requests (GET or POST) usually around 3, and it doesn''t render anything with empty HTTP status code. Have anyone met something similar to that issue? here is some example of log file: Started POST "/account" for 127.0.0.1 at 2010-11-30 22:34:17 +0200
2006 Jul 03
1
how to delete session (hash) member?
session[''a''] = ''aaa'' session.model.data.delete(''a'') <<< works but too "deep" and error-prone session.delete(''a'') <<< doesn''t work is there a better way? thanks. :) -- Posted via http://www.ruby-forum.com/.
2006 Jun 13
11
markaby
What''s the current status of Markaby? I''ve played with it a bit and love it and am considering using it for a large project I''m starting. If you''ve used it, I''d love to hear your comments! Jamie
2001 Nov 17
1
rsync hangs or exists without copying anything
I am trying to mirror a file system using rsync. The command I am using is of the form: rsync -a /fs/home/6/ /usr/fs/home/6 /fs/home/6/ is an NFS file system, /usr/fs/home/6 is a local disk. With versions 2.4.6 and 2.4.7pre1, rsync hangs at random places during the building file list phase. I tried with and without -v option(s) and tried breaking the file system down into smaller chunks with no
2006 Aug 15
3
Versions Compatibility and RAILS_GEM_VERSION
Is there any problem with versions compatibility? A project I started with 1.1.2 cannot run with 1.1.4. Dreamhost recently updated their rails from 1.1.2 to 1.1.5 and 1.1.6. Needless to say I got "Application Error". However when I changed RAILS_GEM_VERSION to either 1.1.5 or 1.1.6, it works. (Haven''t made a thorough checking though.) Here it seems there is no
2007 Nov 05
0
Authentication: is a guest a user or an "exception"?
Hi all I''m currently implementing authentication/authorization in my app. Now I''m wondering what''s the common way to handle a guest... In fact, many of the visitors of my app will be anonymous users that just want to read articles etc., but one can register as a member to have some further possibilities. So far one can login as a member and from this point on one has
2008 Nov 02
0
immobilien kredite kreditvermittlung online kredite ohne kredit
immobilien kredite kreditvermittlung online kredite ohne kredit ohne schufa kredit fuer beamte + + +++ GUENSTIGE KREDITE ONLINE +++ KREDITE IM INTERNET OHNE SCHUFA +++ + http://jhku.net/KREDITE-ONLINE-24/ http://jhku.net/KREDITE-ONLINE-24/ http://jhku.net/KREDITE-ONLINE-24/ http://jhku.net/KREDITE-ONLINE-24/ http://jhku.net/KREDITE-ONLINE-24/ http://jhku.net/KREDITE-ONLINE-24/
2006 Jul 04
0
Time zone (select and offset)
How to use ''time_zone_select'' and get the returned value as offset, not a string. 0 instead of ''London'', 1 instead of Brussels, and -1 instead of azores. I have tried using my own hash with ''select''. But hashes are not sorted so the output is a mess. If it''s not possible to get offset for ''time_zone_select'', is
2006 Jul 16
0
send_file with stream enabled
Has anyone managed to use send_file with :stream => true? I''m currently still developing using Rails 1.1.2 on windows xp so might be OS problem. But google results show this also happen on linux hosts. I think using send_file with :stream => false is pointless. Since send_data does exactly the same thing. Or am I mistaken? Thanks. -- Posted via http://www.ruby-forum.com/.
2006 Jul 19
0
save without after_save, after_create, after_update?
How to update attribute(s) and save a record instance without triggering the hooks: after_save, after_create, after_update? I know it''s possible with Record.update() but this is dynamic. Only receive the instance, without knowing its class (thus cannot call the class method update()). Or is there a way of knowing the class and calling the class method? Thank you. -- Posted via