similar to: Application error (Rails)

Displaying 20 results from an estimated 5000 matches similar to: "Application error (Rails)"

2006 Feb 03
2
testing to see if emails are sent out on exceptions
Hi, I''m using ActionController::rescue_action_in_public() to send emails when uncaught exceptions happen. Is it possible to write tests for that? Joe
2006 Mar 05
2
Sending an email when a comment is posted
When a user posts a comment on my site, is there a way for me to be notified via email? I know this is pretty easy in php, i.e. mail() function, but I''m looking for the equivalent in Rails. Thanks! -- Posted via http://www.ruby-forum.com/.
2005 Jan 11
7
default error page
Help, please. I need redirection to a custom error page, instead of the default Rails messages (e.g. Unknown action). I use WebRick, no Apache, and i think i can''t use public/.htaccess (# General Apache options). Thanks. ___________________________________ Nuovo Yahoo! Messenger: E'' molto più divertente: Audibles, Avatar, Webcam, Giochi, Rubrica… Scaricalo ora!
2006 Mar 14
1
ActionMailer - help!
I want to send myself an email when someone comments on my site. I setup actionmailer in the environment.rb file, but how do I actually send an email? Is it right after "post.save" or something? If so, what''s the syntax? Thanks for any help. -- Posted via http://www.ruby-forum.com/.
2006 Jul 21
3
Interface with Flickr
Does anyone know how to get going with the flickr api WITHOUT using the ''flickr.rb'' gem? I''m wanting to just use the REXML and ''net/http'' stuff. I''m just wondering how to send requests to the api and handle the response. Any tips would be great! Thanks! -- Posted via http://www.ruby-forum.com/.
2006 May 08
4
<%= text_field %> - how to set the value to session name?
I''m trying to automatically fill a "posted_by" text by with whoever is logged into the session. How do you set the value attribute using "<%= text_field ... %>"??? I''ve tried: <%= text_field ''post'', ''posted_by'', ''value'' => User.find(session[:user_id]).name.capitalize) %> But I get
2006 Mar 14
5
Dreamhost Database problems
I''m working on uploading my site to dreamhost. I just setup my production database, and gave it a host name. It said that it was successfully created. Now, it''s been like 25 minutes, and I still can''t connect to it. Is that normal? How can I get my tables created? Just wait it out? I''m trying to load it in the browser, and it says "server not
2006 Mar 29
7
Dreamhost upgraded 1.1 - app doesn''t work
Does anyone know how long it will be until Dreamhost get''s the Rails 1.1 install running correctly? My site has been down since last night at about 7:00 pm (I think). It''s annoying, and are a lot of others having this problem too? Thanks. -- Posted via http://www.ruby-forum.com/.
2006 Mar 05
2
RSS feed for blog entries...
Can someone guide me on the process of providing an RSS feed for my site? I''m not sure how to go about this. Thanks. -- Posted via http://www.ruby-forum.com/.
2009 Feb 04
2
rendering error page for "Unauthorized" from before_filter
Hey all, I am writing a plugin in which I want to stop the rendering of an action with an unauthorized response if the user is not authorized to view the resource. I am using a before filter to achieve this and inside that before filter I do it like so: render :text => "Unauthorized!", :status => :unauthorized, :layout => false The status is properly set since I see the
2006 Jun 21
3
Show Exceptions in Production mode.
Does someone know what to set so that exceptions are shown (to user) when in production mode? I would like the exception to show exactly as it does in development mode. I know that they are written to the log. Richard RogueWaveMarine.com -- Posted with http://DevLists.com. Sign up and save your mailbox.
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
2006 Mar 14
1
ActionMailer Error - Please Help!
I''m trying to send an email to myself when someone comments on my site. Here''s my code, if you don''t mind, could you tell me if you see something wrong? #environment.rb # Include your application configuration below ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.server_settings = { :address => "mail.mydomain.com", :domain =>
2006 Mar 17
7
OT: Subversion folder cleanup
How do you clean up your app folder to place onto the server? I want to get rid of all the .svn stuff. Seth Buntin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060317/cc81d9f7/attachment.html
2009 Dec 05
7
ActionMailer dont function with JRuby?
I have application that i send email normal with native ruby. But when i execute the sample application with jruby, it dont send email and dont get error. What can be wrong? -- Atenciosamente, Paulo Coutinho. Blog: www.prsolucoes.com/blog Site: www.prsolucoes.com Msn: paulo-QE/7f1ia5mR0ubjbjo6WXg@public.gmane.org -- You received this message because you are subscribed to the Google Groups
2006 Mar 04
2
Current date/time - how to store with comments?
Can someone tell me how to store the current date/time when someone posts a comment on my blog? I could even update the comments table after the comment is saved in the controller, but I''m not sure how to do that either. Thanks for any help... -- Posted via http://www.ruby-forum.com/.
2006 Mar 04
4
How to redirect_to the same page after comment posting?
How can I have the page redirect_to the same page after someone posts a comment? I know that you can do "redirect_to :action => ''index''", but the page is located at this URL: /posts/2006/02/01/individual_post/ So, the action is "individual" which is in the "posts" controller, but there is a custom URL mapped for the URL shown above. How can
2006 Mar 09
1
RSS testing on localhost?
If I were to figure out how to develop an RSS feed for my blog, I should be able to test that locally right? If I go to http://mydomain.com/posts/feed/, what should I see? The XML output? Thanks! -- Posted via http://www.ruby-forum.com/.
2006 Mar 13
2
Dreamhost uploading
I haven''t had a chance to upload my app and configure dreamhost, but I did log in and create the folder using the "rails app_name" command. Now, my question is, I read online to do this: > cd domain.com > rails my_app_name So, I did just that. Rails will know what to do even though my application is in a sub-directory under "domain.com"? Essentially,
2006 Mar 17
1
How to handle errors - HELP
I''m having trouble with my Ajax comments, but only when someone clicks the submit button when there''s no comment. How can I handle this in my code? Do I use "rescue nil" or something? Here''s my controller: def comments content = Content.find(params[:id]) @comment = Comment.new(params[:comment]) content.comments << @comment