search for: iseng

Displaying 6 results from an estimated 6 matches for "iseng".

Did you mean: tseng
2006 Jul 13
5
ActiveRecord inheritance
How to create a super class based on ActiveRecord::Base? For example: class ParentRecord < ActiveRecord::Base end class ChildRecord < ParentRecord end Rails always asks for ''parent_records'' table. Which has absolutely no need to exist at all. It''s intentionally made as a super class to be inherited. Thanks. -- Posted via http://www.ruby-forum.com/.
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 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
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