search for: vincehgov

Displaying 5 results from an estimated 5 matches for "vincehgov".

2006 Mar 23
4
belongs_to more than one model
Suppose I have one table: states id statename And I have two other tables that contains states: houses id color state_id places id place_name state_id How would my model relationships look like? class State < ActiveRecord::Base belongs_to house belongs_to place end class House < ActiveRecord::Base has_one state end class Place <
2006 Mar 15
10
Scaffold with Foreign Key
I have two tables: ------------------------------ drop table if exists users; create table users ( id int not null auto_increment, username varchar(100) not null, password varchar(20) not null, firstname varchar(20) not null, lastname varchar(20) not null, primary key (id) ) TYPE = InnoDB; ------------------------------ drop table
2006 Mar 23
2
rails lighttpd fastcgi archlinux
When I try to access the rails app, it''s giving me "Routing Error: Recognition failed for "/"" displayed on my browser. Has anyone ran into this problem before? -- Vincent H Gov -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060323/78ccb76e/attachment.html
2006 Mar 23
0
fastcgi and rails
Do I need to do ''gem install fcgi'' and install the ruby-fcgi package too? Or do they do the same thing? All the tutorials I found tells me to install them both. -- Vincent H Gov -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060323/6f38bd6e/attachment.html
2006 Mar 23
2
lighttpd rails
I''m running lighttpd + fastcgi + rails Say that the lighttpd root directory is the rails application /public directory. I''m just curious. If theres a file in the document root with the same name as a controller, does the file get served first? How does that work? Does lighttpd check the root directory first to see if the file exists- If not, it calls dispatch.fcgi? I want to