search for: redhillconsult

Displaying 12 results from an estimated 12 matches for "redhillconsult".

2006 Jul 19
4
Using Application.rhtml as layout for all controllers
I put my nav system in application layout. that way any controller loading will have the nav system. I have one problem though - the <%= yield %> is in the body, so how would my controllers specify other css files? my application layout would look like this: <html> <head> title css include javascript include </head> <body> nav system <%=yield%>
2006 Jul 13
6
Migrations + foreign keys
Hi all, In the AWDR author use the execute method to declare foreign keys: execute "alter table.... add constraint.... foreign key...." Is there a ruby sintax to declare a foreign key in a migration class? -- Posted via http://www.ruby-forum.com/.
2006 May 25
24
Make these a prt of Ruby on Rails!
3 things that should be part of the main Rails tree: http://www.redhillconsulting.com.au/rails_plugins.html Views? -- Posted via http://www.ruby-forum.com/.
2005 Dec 16
4
Validation with Aggregation
...I''m guessing the obvious answer is to create an email_addresses table and use belongs_to but that seems (to me at least) a somewhat heave- handed approach. Regards, Simon -- Simon Harris RedHill Consulting, Pty. Ltd. 12/55-67 Batman Street West Melbourne VIC Australia 3003 http://www.redhillconsulting.com.au mob: +61 417 505 611 yahoo/msn/skype: haruki_zaemon gmail: haruki.zaemon icq: 20461518
2008 Sep 18
1
user_observer (restful_authentication) causes failure in loading rails
...moving partially loaded constants (["Forum"])... Error while attempting to load ''''. Removing partially loaded constants (["User"])... Error while attempting to load ''''. Removing partially loaded constants (["RAILS_GEM_VERSION", "RedHillConsulting", "Technoweenie", "RAILS_DEFAULT_LOGGER", "NR_CONFIG_FILE", "RPM_AGENT_ENABLED", "RPM_DEVELOPER", "RPM_TRACERS_ENABLED", "RAILS_CACHE"])... Error while attempting to load ''''. Removing partially loaded co...
2006 Aug 16
14
Migrations: only one table per migration file?
Hi all I have a new migration file created that adds some tables and fills one with some data: create_table :sound_styles do |t| t.column :name, :string, :null => false end create_table :show_types do |t| t.column :name, :string, :null => false end create_table :countries do |t| t.column :name, :string, :null => false end ActionView::Helpers::FormOptionsHelper::COUNTRIES.each
2006 Jul 10
3
Can migrations set up foreign key references?
I use Oracle and i really want to use migrations, but there seems to be no way to setup foreign key constraints. Is this true? If it is then doesn''t that make migrations useles with Oracle? Thanks Chris -- Posted via http://www.ruby-forum.com/.
2005 Dec 17
1
How to use validation with aggregation (composed_of)?
...I''m guessing the obvious answer is to create an email_addresses table and use belongs_to but that seems (to me at least) a somewhat heave- handed approach. Regards, Simon -- Simon Harris RedHill Consulting, Pty. Ltd. 12/55-67 Batman Street West Melbourne VIC Australia 3003 http://www.redhillconsulting.com.au mob: +61 417 505 611 yahoo/msn/skype: haruki_zaemon gmail: haruki.zaemon icq: 20461518
2006 Nov 10
2
Testing with foreign keys
I''m looking for a plugin/whatever for preloading fixtures, to run tests with FKs defined. Specifying load order just doesn''t work for me, I need to purge the test db, load all fixtures, and only then create the FK constraints. Any suggestions? Isak --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2005 Dec 15
4
rake migrate ignores '':null => false'' on mysql
I wanted to add a login string column to an existing table => I created a migration : ... def self.up add_column "members", "login" , :string, :null => false end ... remark: it shouldn''t work, as the table is not empty (=> ''login'' would be null in the existing rows.) problem: rake migrate didn''t complain
2006 Aug 07
28
Dr Nic’s Magic Models
Welcome! Welcome! Welcome! Ladies and Gentlemen, today you shall be thrilled and dazzled by wonders of magical mystery. Dr Nic?s Magic Models will now be unveiled to all. Mystery and magic that you will be able to perform at home. Within your ActiveRecord models, never again will you need to write: * validates_presence_of validations * has_many and belongs_to statements * has_many
2006 Aug 13
10
does rails enforce referential integrity???
Hi, Is rails supposed to support referential integrity? That is rails either support to be able to ensure that when a new contact is created this can only happen if a valid suberb is associated with it, and which mechanisms of the below are supposed to do this? (a) using DB foreign key constraints information as a basis? (b) using the "has_one" line in the model file to enfore? If