I read in a thread that it might be a mongrel issue. WHat do I do about this?
Updating Doesn't Work
- Kartplaza
- Posts: 4
- Starts: 3
- Wiki Edits: 0
- Location: Philippines
Hi everyone! I put up a new rails app and things seem to be working fine except when I update nothing happens. I click on edit, change some values, then submit then the data is exactly the same as it was when I first created it.
I read in a thread that it might be a mongrel issue. WHat do I do about this?
I read in a thread that it might be a mongrel issue. WHat do I do about this?
- Varun
- Posts: 410
- Starts: 0
- Wiki Edits: 0
You need to restart the mongrel instances for the site to see the changes done to your web site taking place. Have you tried this already ?
Or are you making changes online- like on a form on your site ?
Or are you making changes online- like on a form on your site ?
2008-05-06 04:25 AM
- Kartplaza
- Posts: 4
- Starts: 3
- Wiki Edits: 0
- Location: Philippines
I'm trying to make changes to the database via /edit but it doesn't update. /new works though..
Sorry what I meant was that it might be a fast cgi issue? I don't have many users so I don't need mongrel but I'd like to be able to update my database.
What do should I do?
Thanks
Sorry what I meant was that it might be a fast cgi issue? I don't have many users so I don't need mongrel but I'd like to be able to update my database.
What do should I do?
Thanks
2008-05-06 10:32 AM
- Vinayan
- Posts: 156
- Starts: 0
- Wiki Edits: 1
Hi Kartplaza,
If you are running your application in production mode, then please kill the fcgi process to get the updated code in effect.
You can kill the fcgi process as.
kill -9 -u <username> dispatch.fcgi
>>I'm trying to make changes to the database via /edit but it doesn't update. /new works though..
Please tail the log files while performing the edit operation and check whether the request is passing to the database.
If you are running your application in production mode, then please kill the fcgi process to get the updated code in effect.
You can kill the fcgi process as.
kill -9 -u <username> dispatch.fcgi
>>I'm trying to make changes to the database via /edit but it doesn't update. /new works though..
Please tail the log files while performing the edit operation and check whether the request is passing to the database.
2008-05-06 05:04 PM
- Kartplaza
- Posts: 4
- Starts: 3
- Wiki Edits: 0
- Location: Philippines
HNope, it doesn't get thru. Sorry, even making new ones are similar. I thought I was making new ones. Anyhow, here's the log from editing a note to updating.
Please ignore the missing gifs
Please ignore the missing gifs
Processing NodesController#edit (for 202.128.36.146 at 2008-05-07 00:55:04) [GET]
Session ID: 7069b1c468f488cd3548012e20238e66
Parameters: {"action"=>"edit", "id"=>"1-about", "controller"=>"nodes"}
Cookie set: role=admin-role; path=/; expires=Tue, 01 Jan 2030 00:00:00 GMT
Cookie set: log=logged_in; path=/; expires=Tue, 01 Jan 2030 00:00:00 GMT
Rendering template within layouts/application
Rendering nodes/edit
Completed in 0.08645 (11 reqs/sec) | Rendering: 0.07675 (88%) | DB: 0.00000 (0%) | 200 OK http://www.kartplazamanufacturing.com/nodes/1-about/edit]
Processing ApplicationController#index (for 202.128.36.146 at 2008-05-07 00:55:09) [GET]
Session ID: 7069b1c468f488cd3548012e20238e66
Parameters: {}
ActionController::RoutingError (No route matches "/images/loading.gif" with {:method=>:get}):
/vendor/rails/actionpack/lib/action_controller/routing.rb:1441:in `recognize_path'
/vendor/rails/actionpack/lib/action_controller/routing.rb:1424:in `recognize'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:170:in `handle_request'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:115:in `dispatch'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch'
dispatch.cgi:10
Rendering /home/kartpla/current/public/404.html (404 Not Found)
/!\ FAILSAFE /!\ Wed May 07 00:55:09 -0500 2008
Status: 500 Internal Server Error
No route matches "/images/loading.gif" with {:method=>:get}
/home/kartpla/current/vendor/rails/actionpack/lib/action_controller/routing.rb:1441:in `recognize_path'
/home/kartpla/current/vendor/rails/actionpack/lib/action_controller/routing.rb:1424:in `recognize'
/home/kartpla/current/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:170:in `handle_request'
/home/kartpla/current/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:115:in `dispatch'
/home/kartpla/current/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
/home/kartpla/current/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch'
dispatch.cgi:10
Processing ApplicationController#index (for 202.128.36.146 at 2008-05-07 00:55:11) [GET]
Session ID: 7069b1c468f488cd3548012e20238e66
Parameters: {}
ActionController::RoutingError (No route matches "/images/closelabel.gif" with {:method=>:get}):
/vendor/rails/actionpack/lib/action_controller/routing.rb:1441:in `recognize_path'
/vendor/rails/actionpack/lib/action_controller/routing.rb:1424:in `recognize'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:170:in `handle_request'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:115:in `dispatch'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch'
dispatch.cgi:10
Rendering /home/kartpla/current/public/404.html (404 Not Found)
/!\ FAILSAFE /!\ Wed May 07 00:55:11 -0500 2008
Status: 500 Internal Server Error
No route matches "/images/closelabel.gif" with {:method=>:get}
/home/kartpla/current/vendor/rails/actionpack/lib/action_controller/routing.rb:1441:in `recognize_path'
/home/kartpla/current/vendor/rails/actionpack/lib/action_controller/routing.rb:1424:in `recognize'
/home/kartpla/current/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:170:in `handle_request'
/home/kartpla/current/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:115:in `dispatch'
/home/kartpla/current/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
/home/kartpla/current/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch'
dispatch.cgi:10
2008-05-07 12:59 AM
- Varun
- Posts: 410
- Starts: 0
- Wiki Edits: 0
Hi there - I couldn't see the files closelabel.gif and loading.gif under public/images directory of your app. Could you look into this ?
If you still have a problem, please post a ticket with support so we could investigate this in detail. We cannot discuss account/domain specific information on the Forums. make sure you outline the exact steps to replicate the problem when posting a ticket.
If you still have a problem, please post a ticket with support so we could investigate this in detail. We cannot discuss account/domain specific information on the Forums. make sure you outline the exact steps to replicate the problem when posting a ticket.