Displaying 4 results from an estimated 4 matches for "davetron5000".
2009 Aug 13
5
First hit on app takes a long time
So, I''ve deployed my first rails app, however I''m the only one hitting
it for now.
I''ve noticed that the first time I hit the app after some long period,
it takes a really long time to respond (2-3 seconds). After that,
it''s very fast.
At first, I thought it might be my VPS "waking up" from some sleep
state, but Rails does log the long load time
2009 Jul 05
4
Deploying without capistrano, using git pull?
I''m NOT working on an enterprisey big time rails application; just
something for my personal site.
I''ve been deploying via
local> git push origin master
remote> git pull origin
remote> sudo /etc/init.d/httpd restart
Trying to decide if this is sufficient, or if learning capistrano and
setting that up will give me any advantages over this?
Thanks,
Dave
2008 Nov 17
2
Can't seem to test http error codes
in application.rb
rescue_from ActiveRecord::RecordNotFound { |e| http_status_code
(:missing, e) }
def http_status_code(status, exception)
@exception = exception
respond_to do |format|
format.html { render :template => "shared/status_#
{status.to_s}", :status => status }
format.any { head status }
end
end
in a controller
project =
2008 Nov 16
0
non-RESTful action or nested routes?
I''m creating a simple task management system to learn Rails. I have a
"task" which is part of a "project", as so:
/projects/5/tasks
for project with id 5''s tasks
My task has a concept of being started, completed and updated.
"Updating" maps to the existing RESTful routes provided by Rails.
Started and completing, however, do not (at least not