Its all about Ruby On Rails
Terminate called after throwing an instance of ‘int’
Ever faced “terminate called after throwing an instance of ‘int’ ” error in RubyOnRails?
or
Specially on linux machine only not on windows.
Error occurred specially when dealing with some image handling, or with attachment_fu.
The cause of this error is image_science 1.1.3 . Add :processor => “Rmagick” to has_attachment options and get rid of this problem.
Enjoy!!!
| Print article | This entry was posted by Akhil Bansal on November 24, 2008 at 5:59 pm, and is filed under Exception, ROR, Rails, Rubyonrails, gem, mongrel, ruby. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
No trackbacks yet.
Download recursive directories with wget using Username & Password for FTP
about 4 months ago - 1 comment
Using ftp to download multiple files using ‘mget’ command is pretty common, however it downloads files from current directory only. But if you need to download recursive directories with all its content then? And specially when you don’t have shell access to the remote machine and you don’t have access to archive the targeted folder?
uninitialized constant ActionMailer::Quoting::Encoding
about 4 months ago - 1 comment
Just a quick note, If you are getting “uninitialized constant ActionMailer::Quoting::Encoding” while using ActionMailer, then make sure that your mailer look like: class Notifier < ActionMailer::Base def signup_notification(recipient) recipients recipient.email_address_with_name bcc ["bcc@example.com"] from "system@example.com" subject "New account information" body :account => recipient end end Actually, yesterday we were getting “uninitialized constant ActionMailer::Quoting::Encoding” while using ActionMailer
11 Things to Consider Before Deploying Your Rails Application
about 9 months ago - 2 comments
Cross Posted from http://vinsol.com/blog At VinSol, we have been developing and deploying Rails applications for more than four years. During this period, we have identified some best practices that we prefer to follow while deploying rails application to production server. Below is the checklist of these practices: 1. Ensure that NS records and MX
Change timezone of ubuntu machine from command line
about 1 year ago - 9 comments
If you guys want to change timezone of your ubuntu machine then you can do it by issuing: dpkg-reconfigure tzdata This may be helpful if you deal with servers.
Hassle free installation of rails stack on debian based system
about 1 year ago - 5 comments
Want to install rails stack on a machine? Just follow these steps. It will setup a rails stack(Apache + passenger + mysql + ruby + rubygems + common gems + git) on any server(debian based) apt-get update apt-get upgrade -y apt-get -y install build-essential libssl-dev libreadline5-dev zlib1g-dev apt-get -y install mysql-server libmysqlclient15-dev mysql-client apt-get -y
ActionMailer Error: hostname was not match with the server certificate
about 1 year ago - 5 comments
You guys may have stuck with following error while using ActionMailer with Rails 2.2.2 . OpenSSL::SSL::SSLError (hostname was not match with the server certificate): /usr/lib/ruby/1.8/openssl/ssl.rb:123:in `post_connection_check’ /usr/lib/ruby/1.8/net/smtp.rb:582:in `tlsconnect’ /usr/lib/ruby/1.8/net/smtp.rb:562:in `do_start’ /usr/lib/ruby/1.8/net/smtp.rb:525:in `start’ /vendor/rails/actionmailer/lib/action_mailer/base.rb:671:in `perform_delivery_smtp’ /vendor/rails/actionmailer/lib/action_mailer/base.rb:526:in `__send__’ /vendor/rails/actionmailer/lib/action_mailer/base.rb:526:in `deliver!’ /vendor/rails/actionmailer/lib/action_mailer/base.rb:392:in `method_missing’ /app/controllers/users_controller.rb:40:in `send_email_to_confirm_user’ Actually, Rails 2.2.2 turn on STARTTLS if it is available in Net::SMTP (added
Exceptional: Another rails application exception tracking application
about 1 year ago - No comments
Some days ago I found HopToad, as a subtitute of exception notifier plugin. Now, today I found another rails exception tracking application named Exceptional. Hoptoad is free while exceptional is paid.
Hoptoad: A Rails Exception Handling Service
about 2 years ago - No comments
Many of you guys(as me) may have used Exception Notifier plugin to get Rails app exceptions right into your mailbox, and may also have faced some problem like this. Also if you have 2-3 or more apps running in production then managing such exception mails is also a big headache. In such case one have
Git Error: trailing whitespace, indent SP followed by a TAB, unresolved merge conflict
about 2 years ago - 6 comments
I have been using Git from last few days, and faced following errors while committing: 1) Trailing whitespace 2) Indent SP followed by a TAB 3) Unresolved merge conflict The first error “Trailing whitespace” is because of carriage-return/line-feed(windows style line feed/end). To resolve this problem comment following lines(58-60) in .git/hooks/pre-commit file: if (/\s$/) { bad_line("trailing
Deploying rails application with pound as a Balancer
about 2 years ago - 5 comments
Now a days Apache + mod_proxy + mongrel_clusters, Lighttpd + Mongrel cluster and Nginx + mongrel cluster are well known for deploying rails applications. You can also deploy your rails application with pound(a reverse proxy, load balancer and HTTPS front-end for Web server). First you need to setup mongrel_clusters for your rails application by issuing
about 1 year ago
That’s an uncaught C++ exception. I’m guessing that something in ImageMagick threw up. But as for why, I don’t know. A bug maybe? Try debugging it in gdb.