Displaying 20 results from an estimated 90000 matches similar to: "Question about exception notification"
2010 May 24
5
top 10/most popular lists
What''s the best way to handle views that show the top 10/most popular/
Recently updated/most commented type listing?
Should I have a separate model that is populated with records from
other models by a background job or should I need to use some sort of
caching? Perhaps both?
Thanks!
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2010 Oct 04
4
http caching a dynamic page
Is it possible to take advantage of http caching/proxy caching with
dynamic pages? i.e. pages with section/part that can change over time
but certain part of the page remain the same. I would rather not keep
re-rendering the static part but insure the dynamic part are rendered
with fresh data.
I am using memcached mostly as an object store that I can minimize db
hits but I still am rendering a
2007 Nov 14
2
Exception Notification plugin options hash handling????? backwards merge?
Today I worked on adding email exception notification to some
ancillary background processes for a Rails app.
Since I was already using Jamis'' exception notification plugin to
notify me of errors in controllers for the web app, I figured that the
path of least resistance was to try to figure out how to hook it into
the daemon code.
At first it looked easy. I just needed to
2010 May 14
4
Tricky model situatione
I have two models Club and users. users are regular authenticated
users and some of them might create a club. A club can also have
members (essentially users) and there are attributes and models that
apply to member but not to users.
Here is what I have right now.
Club => belongs_to :user
User => has_many clubs (since a user can host multiple clubs).
Now how do I fit this member model
2010 Sep 18
3
max-age/header problems with nginx
0 down vote favorite
I notice that in my production enviornment (where I have memcached
implemented) in see a cache-control - max-age header in firebug,
anytime I am looking at an index page (posts for example).
Cache-Control max-age=315360000
In my dev environment that header looks like following.
Cache-Contro private, max-age=0, must-revalidate
As far as I know I have not done anything
2010 Apr 07
2
rails timezone difference in console and production application
Hi all,
I''m on a rails 2.3.5 app. I''ve got my timezone set to ''Brussels'';
config.time_zone = ''Brussels''
When I use mysql I see that a date is stored in UTC (as expected);
e.g. 2010-04-07 15:03:10
When I use console to print out the date it correctly returns;
>> job.created_at.strftime(''%d %b %Y, %H:%M'')
=>
2010 Aug 28
1
find_in_batches vs limit
Is the :limit option in the regular find call effectively same as
doing find_in_batches? or does doing something like the following
loads "all" of the record and then returns only 5?
find(:all, :conditions => [''age > ?'', age], :limit => 5)
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2012 Dec 14
1
Re: Digest for rubyonrails-core@googlegroups.com - 4 Messages in 3 Topics
This is a delivery failure notification message indicating that
an email you sent could not be delivered. The problem appears to be :
-- Recipient email server rejected the message
This condition occurred after 1 attempt(s) to deliver over
a period of 0 hour(s).
If you sent the email to multiple recipients, you will receive one
of these messages for each one which failed delivery, otherwise
2009 Aug 10
2
testing exception notification plugin with rspec
Hi,
I''m trying to install exception notification plugin and test it with
rspec.
The problem that I have is that when running the server in production
mode : at the end of the log i get this when I have a critical error
rendering section "request"
rendering section "session"
rendering section "environment"
rendering section "backtrace"
Sent mail to
2008 Oct 20
0
Problem with exception notification with Rails edge....
I''m having hard time to make it work. To test it I did force an error
in my controller but nothing happened. I did include the
ExceptionNotifiable in my application.rb
Anything else to do to at least see come in that plugin when an error
occurs?
RĂ©mi
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you
2007 May 24
3
Exception Notification Plugin Question
Hi,
I have two questions re the Exception Notifier plugin (i.e. which you
install via "ruby script/plugin install exception_notification")
Q1 - In it''s current setup (where it uses /public/500.html) is it possible
to remove the "Status: 500 Internal Server Error Content-Type: text/html"
text which seems to mysteriously get place at the top of the page?
Q2 -
2013 Jul 22
1
Dependency upon raised error/exception messages.
Hey everyone,
first of all, thank you for the tremendous work and effort on making Rails
more awesome every day.
I''ve brought up this "issue" on Github last Friday. [1] Steve Klabnik told
me to bring the discussion here, as it''s more appropriate.
The thing is, there is some amount of logic scattered around Rails (and its
tests) that depends upon error/exception
2008 Mar 06
1
ActiveRecord exception handling
Hi,
I''m writing some scripts on the command line using ActiveRecord, and
some interesting (read: confusing) things are happening with the way
exceptions are caught and re-raised.
In AbstractAdapter.log (connection_adapters/abstract_adapter.rb:144),
Exception is rescued and reraised as an ActiveRecord::StatementInvalid
exception. While in most cases I''m sure this is fine,
2010 Sep 29
3
Foreman barfs on startup.
All,
First attempt at running foreman.
[pax] prov01 /usr/share/foreman/script:# ./server -e production
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
/usr/share/foreman/vendor/rails/activesupport/lib/active_support/dependencies.rb:443:in
`old_load_missing_constant'': uninitialized constant Puppet::Rails
(NameError)
from
2010 Jun 09
1
[patch] fix bytesize in exception template; multibyte titleize
Hi all,
I wanted to draw some attention to a couple of very small multibyte-related
patches I believe should be included before Rails 3.0 RC1:
* Use String#bytesize rather than String#length in exception templates:
This is a simple case where string length is checked, but bytes is needed,
so it breaks with string with multibyte chars.
2010 May 26
3
Plugin test fixtures
Just spent a good bit of time trying to figure out why I couldn''t get
fixtures to work in a plugin test. I was including
ActiveRecord::TestFixtures into ActiveSupport::TestCase and trying to
get fixtures to automatically reload for every test like regular Rails
tests.
The problem was in the first line of
ActiveRecord::TestFixtures.setup_fixtures:
return unless defined?(ActiveRecord)
2010 Jul 26
2
Exception Pages when behind a proxy
I am not sure if this desired feature or not but when we are behind a
local proxy ie. Nginx/Varnish then the new ShowException middleware
doesn''t seem to properly detect the remote IP address and it appears
as if every browser gets a local error page with a stack trace, etc.
I''ve opened up a ticket on the rails bug tracker but I also would like
to verify that this is in fact a
2012 Nov 15
2
Suggestion: use `select` values if `pluck` called with no args
I suggest that if you don''t pass any args to ActiveRecord#pluck, it would
use the select values. This follows along well with the way other
AR::Calculations work. As an extra benefit we would be able to pluck
virtual columns.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To view this discussion on the web visit
2009 Dec 01
12
Rails 2.3.5 - Cannot install plugin
I''m always get the message "Plugin not found: ["git://github.com/
aaronchi/jrails.git"]" when trying to install a rails plugin, even for
SVN or GIT. After google search, some people suggest that replace
"git://" with "http://" and add "/" at the end of the url. I tried and
it still does not work.
I used the ruby 1.9.1-p243 and rails
2010 Sep 02
5
Re: Exclude ActiveRecord in Rails3
What''s the best way to exclude ActiveRecord in Rails3?
In Rails2, one could just do:
*config.frameworks -= [ :active_record ]*
in the configuration block in environment.rb. Is it possible in Rails3?
Thanks.
Anuj
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to