search for: heikki74

Displaying 4 results from an estimated 4 matches for "heikki74".

Did you mean: heikki
2006 May 31
4
Add 2 Records with Migrations. No errors. No new records.
I have created the following migrationg by using: "ruby script/generate migration AddFirst" But when I run: "rake migrate" it doesn''t add these two records. I don''t get any errors. The schema_info table is created and schema.rb is updated with ":version => 1". Can I not create records this way? When I load up script/console and put in the same
2006 May 15
5
Finding out the file attributes in FileColumn models
Is there a way to find out the attributes that have been passed to file_column in models? I''ve looked through the source and it seems that the file_column methods are generated at runtime but there''s actually no class or instance variable that hold the file attribute. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 May 04
2
How can I get posted params in correct order?
I''d like to have posted form field data in the same order they were in the form. Raw_post shows the data in correct order but params hash doesn''t. This happens every time (tried it with webrick). Any ideas how to get an array of objects in the correct order? -- Posted via http://www.ruby-forum.com/.
2006 Feb 05
1
Database works with console, fails otherwise
I can use database via script/console. Item.create and Item.find works ok. When I try to do the same thing on a test page, I get this error message: Mysql::Error: Lost connection to MySQL server during query: SELECT * FROM items LIMIT 1 I suppose they both use the same settings, so what could be the reason for this behaviour?? -- Posted via http://www.ruby-forum.com/.