Displaying 8 results from an estimated 8 matches similar to: "save and save! fail but no errors are created"
2005 Dec 18
5
restarting fastCGI process
Hi, I am very new to this so please go easy on me... I am trying to
deploy my app on dreamhost and I seem to be having problems getting it
working. One of the troubleshooting items on the wiki states:
Rails apps in production mode do not reflect changes made after they
start running. So, if you found a bug, fixed it and nothing appeared to
happen--this is probably because you
2005 Dec 16
10
Associative arrays
I just started playing with rails this week and am working on porting our
existing website to rails
in our navigation we have a list that has the days of the week that link to
the articles for those days.
this seems to be working when I had it in the template it would give me the
array I was looking for so I decided to move it to the helper so that I
could use it on all my templates.
2007 Dec 08
3
Multiple Worker Methods on Different Schedules
Quick question: If I want to schedule different worker methods defined in
the same worker to trigger at different times, is this possible? Would the
following scheduler yaml work?
:schedules:
:foo_worker:
:worker_method: method1
:trigger_args: 0 */10 * * * * *
:job_key: some_key_1
:foo_worker:
:worker_method: method2
:trigger_args: 0 */15 * * * * *
:job_key:
2008 Jul 30
2
Mysql "lock wait timeout" tuning
We''re seeing these errors intermittently:
###
Mysql::Error: Lock wait timeout exceeded; try restarting transaction:
UPDATE `chairs` SET `published_at` = NULL, `updated_at` = ''2008-07-30
15:31:05'' WHERE `id` = 2147
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract_adapter.rb:147:in `log''
###
The root issue is probably
2005 Dec 14
3
Advanced routing question.
Hello All,
I''m making a quick application that tracks outgoing links to referral
sites. I need to track the user and the url they went to so the
easiest way would be to take the entire url as a parameter and log
that into the database. I was wondering if I could do something like
this with routing:
http://www.example.com/user/jump/http://www.myvendor.com/referral.php?
2005 Dec 15
11
CGI Module in Rails
I''m trying to use the CGI module to generate the html in a view but am
having trouble. My controller looks like:
class MyTestController < ApplicationController
def cgitest
require ''cgi''
@cgi=CGI.new("html3")
end
end
My cgitest.rhtml view document simply has:
<%= @cgi.out{@cgi.html{@cgi.head{}}} %>
Loading MyTest/cgitest, Rails tells me that
2005 Dec 23
6
Save using Update
Hi,
I want to update an existing row in table "items" where items.id == 10
I tried this:
item = Item.new
item.f1 = ...
item.f2 = ...
...
item.id = 10
item.save
I got an error
Duplicate entry ... for key 10 : INSERT INTO items ...
How do I make item.save to use UPDATE instead of INSERT?
--
Posted via http://www.ruby-forum.com/.
2007 Oct 07
0
Is there a way to use the rescue_action defined in a controller in the controller''s specs?
Heyho,
I start to discover RSpec but it seems that just on my second day I
ran into some strange trouble with the rescue_action of my
controllers. Just like in Rails 2.0 where there is a
rescue_from Exception, :with => :foo_method
thing to rescue exception thrown in actions in the production
environment, I did a little helper that rescues my action exceptions
with a defined class.
For