search for: website_url

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

2006 Apr 02
1
One to Many Relationship Issues
Hi, I am having issues with a one to many relationship(it never works :-)). Jokes aside, I am getting an error: Mysql::Error: #23000Cannot add or update a child row: a foreign key constraint fails: INSERT INTO adverts (`image_url`, `price`, `title`, `website_url`, `description`, `user_id`) VALUES(''bb'', 22.0, ''aa'', ''www.drill.com/cordless'', ''bb'', 0) The user_id(last column) needs to be 1, and its 0 Session dump: --- flash: !ruby/hash:ActionController::Flash::FlashHash {} :user_id: 1...
2006 Aug 12
2
Ferret Issues
...working, but it comes back with empty results all the time. It seems like ferret is building the index (there is 3 binary files in the index directory). If I add the line: acts_as_ferret :fields => [''title'',''description'',''price'',''website_url''] to my advert model I get the following error: undefined method `acts_as_ferret'' for Advert:Class Please help, David -- Posted via http://www.ruby-forum.com/.
2006 Aug 12
4
Ferret Wierdness
...is working, but it comes back with empty results all the time. It seems like ferret is building the index (there is 3 binary files in the index directory). If I add the line: acts_as_ferret :fields => [''title'',''description'',''price'',''website_url''] to my advert model I get the following error: undefined method `acts_as_ferret'' for Advert:Class Please help, David -- Posted via http://www.ruby-forum.com/.
2009 Feb 21
2
Foreign-key confusion
...ields into my Shows table: class CreateShows create table :shows do |t| t.string :date t.string :venue t.string :info t.string :comics The second table I created is called Theatres: class CreateTheatres create table :theatres do |t| t.string :name t.string :address t.string :website_url t.string :location The :venue field in the Shows table corresponds to the :name field in the Theatres table. How do I set up a relationship whereby Theatres have many shows, while defining this (:venue - :name) relationship as the link? I have tried the :set_primary_key & :foreign_key =&gt...
2006 Jul 18
13
RANDOM
I am pretty much new at this ROR game and had what I think to be a simple question. I have a set of Sponsors that I would like to be able to select one at random and display in the my html. I have already set up the DB, scaffolded, set index controller and all is working smoothly. I know that I can display them all by doing <% for sponsor in @sponsors %> <%= sponsor.name %>
2006 Mar 12
2
counter_cache reference/tutorial
I''m trying to use counter_cache, but I''m not doing something right. It is unreliable and I keep having to correct it manually. Is there a good tutorial or reference on how to use it on-line? I have the AWDR book, but I need something more complete. TIA, Jeffrey