Displaying 20 results from an estimated 80000 matches similar to: ""deprecated" error message in apache error log"
2006 Oct 26
2
Mocha and SimplyHelpful
Hi,
I''m getting a conflict between the Mocha plugin and the Rails
SimplyHelpful plugin.
For some reason the dom_id method from SimplyHelpful is not being
found in my views when the Mocha plugin is installed. The dom_id
method if used in the controller works properly.
This is the error I get when running the tests:
1) Error:
test_truth(HmmControllerTest):
2005 Dec 28
1
FCGI: warning: Object#id will be deprecated; use Object#object_id?
I am seeing some strange entries in my Apache error log from FCGI that I
don''t understand.
I have pasted one of the lines below.
Anyone seen this or know what might be going on?
[Wed Dec 28 08:35:50 2005] [error] [client 24.115.131.100] FastCGI: server
"/home/www/apps/appname/public/dispatch.fcgi" stderr:
/home/www/apps/appname/app/views/photo/fullsize.rhtml:26: warning:
2006 Feb 28
3
Object#id will be deprecated?
I didn''t get the memo on this :P
members_controller.rb:12: warning: Object#id will be deprecated; use
Object#object_id
Line 12 is:
@member = Member.find(@current_member.id)
How _should_ I be writing that line?
Thanks,
Joe
--
Posted via http://www.ruby-forum.com/.
2006 Mar 21
5
Object#id being deprecated - Rails 1.1
Hi
Think this is probably straightforward, but I don''t know enough about
rails to work it out, so was wondering if anyone can help
I keep on running into this error when I''m deploying my app:
"FastCGI: server ".../public_html/public/dispatch.fcgi" stderr:
../config/../app/views/items/_side_share.rhtml:8: warning: Object#id
will be deprecated; use
2011 Mar 15
8
Problems with Object#id deprecation
Hello everyone, in a test helper in my app I call category.id that gets the
id of category in the database. However, when running RSpec I get the
following error:
As a parla customer
/Users/saulolopes/code/parla/spec/acceptance/support/paths.rb:13: warning:
Object#id will be deprecated; use Object#object_id
/Users/saulolopes/code/parla/spec/acceptance/support/paths.rb:13: warning:
Object#id
2009 Nov 18
4
rails newbie : routing error
After much ado about the naming of model adn controllers...
model : Expense
controller : Expenses
route : map.resources :expenses
Here I am using mysql database and created a unique index, since
db:migrated created an id object and made it as primary key. Now in
the
def create
@expense = Expense.new(params[:expense])
if @expense.save
flash[:viola] = ''New expense saved.. be
2007 Feb 17
1
"warning: object#id will be deprecated" with mocks
hi all
I have the following code in a spec:
@user = mock("user")
User.stub!(:authenticate).and_return(@user)
@user.should_receive(:id).once.and_return(99)
post :login, {:username => ''username'', :password => ''password''}
session[:user_id].should == 99
it works as expected but I get the following warning when I run the spec:
warning:
2008 Feb 20
0
#dom_id should use AR#to_param instead of AR#id
Hi,
I have just commited a patch for ActionController''s #dom_id, it should
iternally use AR#to_param instead of AR#id, because #to_param is used
for routing representation of an ActiveRecord inside ActionPack.
You can found the ticket here: http://dev.rubyonrails.org/ticket/11179.
Luca.
--
blog: www.lucaguidi.com
--~--~---------~--~----~------------~-------~--~----~
You received
2010 Apr 26
2
woriking under webrick but not under passenger
Hi!
I have just added login feature to my rails application (followed the
instruction from (Agile Web Development with Rails) but now I am getting
strange errors (looks to me like some kind of routing problem) under the
passenger/apache.
The error is:
500 Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
From the log:
2009 Aug 12
5
Challenge for object_id, Garbage Value
I am facing strange problem.
I have an object @part=MainPart.find(:all)
1. @part.each_with_index do |mainpart,index|
2. <p><%= mainpart.object_id%></p>
3. end
Here problem is that object_id is reserved for rails. Here
object_id field in my table . Now i want to get value <%=
mainpart.object_id%> is giving GARBAGE VALUE. Is there any solution
apart from
2005 Dec 08
1
SwitchTower, Apache, and Routing Errors
Hello,
I deployed a Rails App using Switchtower and now I''m getting a Routing Error
to my Javascript and Stylesheet files.
Has anybody else had this issue?
Here is the log file.
> ActionController::RoutingError (Recognition failed for
> "/javascripts/prototype.js"):
> /vendor/rails/actionpack/lib/action_controller/routing.rb:470:in
>
2006 Jul 21
3
Help me run rails on apache on Linux Fedora
Hello all,
I am new on the rails list, having signed up today, but I am in
the midst of some sticky business getting rails to go on my linux
system. I am running Fedora Core 4, with Ruby 1.8.4 and Apache 2.0.54.
I have setup the chapter 4 tutorial from the "agile book" and
everything works absolutely perfectly using Webrick. I got
rails 1.1.3 from ruby gems, and since have done an
2010 Oct 05
0
Ruby with apache ActionController::RoutingError (No route matches "/"):
Hi!
I an trying to setup ruby on rails with apache server on ubuntu server
10.04. I have followed toe guid on the ubuntu page.
My main app is located in:
/home/jonas/ruby/apps/rtest1/public
and I created a symlink to /var/www/app using the following command:
sudo ln -s /home/jonas/ruby/apps/rtest1/public /var/www/app
I have also reconfigured the owner of the /home/jonas/ruby/apps/rtest1/
2006 Apr 21
3
Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id
Hi
I am a newbie to Ruby on Rails, but experienced in programming.
I am trying out Rolling with Ruby on Rails article by Curt Hibbs on
onlamp.com. I have encountered following error:
Called id for nil, which would mistakenly be 4 -- if you really wanted
the id of nil, use object_id
I searched the archives of the list and found that similar
question was left unanswered. I do understand from
2005 Nov 24
1
Log question
development.log contains quite a few SELECTS on system tables like
COLUMNS. Wouldn''t it be more efficient to cache this info?
I''m also wondering about strings like "[4;35;1m". What''s their purpose
and is it possible to get rid of them? They look like screen coordinates
and makes no sense in a text file.
Christer
Processing ReportController#create (for
2006 Jan 26
4
warning: Object#id will be deprecated; use Object#object_id
Is anybody else getting this warning.
When I change @user.id to @user.User_id I am getting no method definition
present exception. Any thoughts?
Rgds,
--Siva Jagadeesan
http://www.varcasa.com/
My First Rails Project. Powered by Typo and soon by RForum too
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jul 06
0
Apache 2.0 proxy
This is the configuration I use with Apache v2.0. I don''t use virtual hosts.
This configuration lets Apache serve the images, javascripts, and stylesheets. ?
This means that the application needs to be installed on the Apache server as
wheel as the mongrel server(s) in multiple server environments. ?
If i wanted to flatten the resource directories I could avoid the rewrite
rules,
2009 Apr 06
2
URL issue localhost/mongrel vs remote-server/apache
Hi all
I have a small issue I ma trying to solve (at least to understand..)
I am testing an app on my remote_server (w Apache/Passenger) in a
sub_URI, without any problem (I tested also the same app, locally w
Apache too)
in my environment.rb , I have initialized
config.action_controller.relative_url_root = "/my_subURI"
config.action_controller.asset_host =
2006 Apr 28
1
Apache proxy to lighttpd leads to Rails routing error
Hello,
I have an issue I am having trouble figuring out. I have a Rails app
running through lighttpd which is accessed through an Apache proxy.
My apache config:
<location /rails/>
ProxyPass http://localhost:81/
ProxyPassReverse http://localhost:81/
</location>
RewriteEngine On
RewriteRule ^/rails/(.*) http://localhost:81/$1 [P]
So when apache sees /rails/ it
2006 Aug 04
0
Proxy from Apache to local Lighttpd instance
Hello,
I''m having a serious problem proxying from Apache (2.2) to local Lighttpd
servers. I need this to run Rails instances on www.mysite.com/rails next to
the regular part from www.mysite.com.
Currently I get a working www.mysite.com/rails for only the first page,
controllers do not work. I am quite desperate in getting this to work as it
is the only way I can run Rails at our