Try, request.env[:REQUEST_URI] instead. That should fix your problem.
Posts Tagged ‘bug fixes’
Rails request.env[:HTTP_REFERER] returning nil
Posted in Ruby on Rails, tagged bug fixes, Ruby on Rails on December 10, 2008 | Leave a Comment »
Rails resources error – undefined method ‘site_*’ -using namespace
Posted in Ruby on Rails, Weird Errors, tagged bug fixes, Ruby on Rails on December 8, 2008 | Leave a Comment »
If you use the namespace route like the one below : map.namespace :user do |user| user.resources :invitations end Make sure you have the links like the following; <% form_for([:user,@invitations]) do |f| %> Don’t try with; <% form_for([@user,@invitation]) do |f| %>
undefined method ‘model’ in application.rb
Posted in Ruby on Rails, Weird Errors, tagged bug fixes, Ruby on Rails on December 1, 2008 | Leave a Comment »
I think you’re running Rails 2. This line will work only with Rails 1. The ‘model’ method is no longer supported.Remove that line from the code. (E.g) undefined method `model’ for ApplicationController:Class – Line 12 in applicaton.rb
Undefined method ‘cache_template_extensions=’
Posted in Ruby on Rails, tagged bug fixes, Ruby on Rails on December 1, 2008 | 1 Comment »
The simple fix is to remove it from my config/environments/development.rb (or) production.rb file as it’s now been deprecated.
The procedure entry point mysql_stmt_row_tell could not be located in the dynamic link library LIBMYSQL.dll
Posted in Weird Errors, tagged bug fixes, lessons, MySQL, Ruby on Rails on November 25, 2008 | Leave a Comment »
If you are getting the following error, here is a quick fix that will get you working again. You will need to manually copy the libmysql.dll to the rubybin directory. Search for libmysql.dll file and copy it to the rubybin folder and
ERROR : could not find gem rails locally or in a repository
Posted in Weird Errors, tagged bug fixes, installations, lessons, Ruby on Rails, tips on November 25, 2008 | Leave a Comment »
If you find this error during rails installation, one solution may be this. Setting up http proxy Gem install behind proxy – MAC
Rails flash[:notice] problem
Posted in Ruby on Rails, tagged bug fixes, lessons, Ruby on Rails, tips on November 20, 2008 | Leave a Comment »
flash[:notice] is meant only for redirect action, because the message is only cleared after the redirected view request. So if you don’t redirect the request, and you click on the next request, that message will still be displayed. But sometimes, we just want to display custom error messages only for current request without the redirection [...]