 |
Forums |
Admin Start New Thread
By: Akira Shimosako
RE: sometime not display model data [ reply ] 2007-10-14 08:58
|
I found the defference between when it works fine and not fine.
In the WEBrick's log:
"GET /users/list HTTP/1.1" 200 1461 <- works fine
"GET /users/list HTTP/1.1" 200 1461 <- works fine
"GET /users/list HTTP/1.1" 200 1461 <- works fine
"GET /users/list HTTP/1.1" 200 1336 <- NOT fine
"GET /users/list HTTP/1.1" 200 1461 <- works fine
"GET /users/list HTTP/1.1" 200 1461 <- works fine
When the 2nd number was changed , the model's properties are not displayed.
|
By: Akira Shimosako
sometime not display model data [ reply ] 2007-10-13 05:30
|
Hello.
I have a problem about displaying model's data with scaffold's view.
my env: Windows XP SP2, DB2 9 Express-C FP2 ,rails 1.8.4 , ruby 1.8.6, ibm_db 0.8.0
procedure:
1) rails test1
2) edit database.yml to connect to db2
3) ruby script\generate model user
4) edit migration file
5) rake db:migration
6) ruby script\generate scaffold user
7) brows http://localhost:3000/users/
8) add new user
9) browser displays the list of users.
In many cases it works fine.
But when I repeat browser reload ,
rails sometimes failed to display model's propety.
When I tried with sqlite3 , there was no problem.
Is there anyone have same problem?
|
|
 |