[Rails] The error occured while evaluating nil.gsub!
Fird Abrar
firdzz at gmail.com
Mon Jul 31 07:32:37 GMT 2006
#{RAILS_ROOT}/app/controllers/start_controller.rb:13:in `create'
---
class StartController < ApplicationController
def create
#------------Remove Tag---------------------------
@name = params[:name]
@file = params[:filepath]
@file = @file.gsub!(/^.*(\\|\/)/, '') # replace html tags with blank
post = Post.save(@params["removetag"])
end
end
--
Posted via http://www.ruby-forum.com/.
More information about the Rails
mailing list