Displaying 20 results from an estimated 70000 matches similar to: "mysterious :action=>"undefined" bug"
2007 Apr 24
2
remote database ActiveRecord model
Does anyone know how to make a model connect to a remote database and
only for that specific model?
That way I can do the typical CRUD functions on a remote server?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
2007 Feb 10
1
calling destory on HABTM clear
I know this is probably stupidly simple, but I can''t seem to figure it
out.
I have a many-to-many association using HABTM. Im trying to clear all
the stuff in the join table and call destroy on all the joined items.
For example if I have a many to many for albums and photos,
def method
album=Album.find(4)
album.photos.clear
# NOW HOW DO I DESTROY ALL THOSE PHOTOS?
end
The things I
2007 Feb 18
2
SerializationTypeMismatch in Production Mode
In production mode, I keep getting this error the 2nd time it loads a
page with a serialized attribute:
ActiveRecord::SerializationTypeMismatch (answers_container was
supposed to be a Array, but was a NilClass):
/vendor/rails/activerecord/lib/active_record/base.rb:1964:in
`unserialize_attribute''
In development, it works fine. In fact, if I set to false
config.cache_classes in
2007 Apr 23
8
rake not working when called through cron
This is currently the contents of "app-backup" in my cron.daily.
--
#!/bin/sh
# Cron Job for Mixbook Code Backup
#
# Updated February 1, 2007
cd /var/rails/beta
rake s3:backup:scm --trace >> /var/rails/beta/log/backup.log
cd /var/rails/beta/log
echo "Backup Successful on" >> backup.log
date >> backup.log
echo "--" >> backup.log
--
When I run
2007 Mar 15
0
RedirectBackError
when i am doing functional testing it gives a error,
"RedirectBackError: No HTTP_REFERER was set in the request to this
action, so redirect_to :back could not be call
successfully. If this is a test, make sure to specify
request.env["HTTP_REFERER"]."
what i have to do?
any one can give the answer
--~--~---------~--~----~------------~-------~--~----~
You received this
2007 Jun 29
0
acts_as_authenticated, reset_session, and redirect_back_or_default
Just a question and an FYI
I just installed rails and acts_as_authenticated and was setting up a
site. Everything works fine except that in the AccountController that
I generated the calls to the routine redirect_back_or_default don''t
work because the call just before it to reset_session clears the
session[:return_to] that the method uses to set where it will
redirect.
I ended up adding
2009 Sep 25
3
NoMethodError : undefined method `stringify_keys!' for "2":String
Hi,
I have been trying to create a small Rails application. In one of
the steps, I am facing this error as "NoMethodError in
ContactController#update ...... undefined method `stringify_keys!''
for "2":String".
Let me give a brief description of the application. This application
is to Create, View and Update contacts. The problem came when updating
a record.
2007 May 16
7
return ONLY total_hits without querying from real database
Hey guys,
I know I can run search(q).total_hits, but if I try to put :limit=>0 it
gives me an error. I don''t want it actually query any of the results, I
just want it to tell me how many total_hits I would have if I wanted to
search it.
How can I do this?
--
Posted via http://www.ruby-forum.com/.
2009 Feb 24
5
undefined method `model' for ContactController:Class
Hi ,
I''m getting "undefined method `model'' for ContactController:Class"
Basically this is my first RoR application.
Can you please somebody help to resolve this.
Steps I have followed,
1)ruby script/generate model contact
2)ruby script/generate controller contact
3) vim app/controllers/contact_controller.rb
class ContactController < ApplicationController
model
2011 Sep 18
0
Webinar: Ruby on Rails: Automating with Chef, Capistrano, Git, Puppet & SVN #rormeetup
Ruby on Rails: Automating with Chef, Capistrano, Git, Puppet & SVN
#rormeetup
Corporate Sponsors : Rapleaf (San Francisco) and Mixbook (San Jose)
Topic : Automating Ruby-on-Rails Deployments using Chef, Capistrano,
Git, Puppet & SVN
RSVP for Meetup Here: http://www.bit.ly/rormeetup
RSVP for Live Stream Webinar Here: http://www.bit.ly/rorwebinar
Twitter Hash Tag for Meetup and Webinar:
2007 Jan 06
2
S3 throwing invalid argument using AWS S3 API
Hello,
Im using the following amazon web service API for S3 :
http://amazon.rubyforge.org/
The problem is that after I establish a connection using
establish_connection!, and try using the "store" command, I keep getting
the following error. However, if I reboot my webrick server, it works
fine for about one hour and then starts throwing this error:
Errno::EINVAL in
2007 Feb 22
4
Modifying Apache Conf To Block Leachers
Howdy,
I''m using Apache 2.2 + Mongrel with great success, using the sample
configs from the Mongrel site.
We have some MP3s on the site and recently someone has been stealing
them and basically leaching them from the site, linking to them from
an off-site location.
I''ve been trying to modify my Apache conf to check the referrer and
adjust accordingly as below but no
2011 Jun 05
1
Cancan redirect back at AccessDenied
Hello
I have a rails 3 app and I am trying to implement the redirect back
action at access denied for cancan.
If I try this in my application_controller:
rescue_from CanCan::AccessDenied do |exception|
redirect_to :back
end
It gives the following error:
No HTTP_REFERER was set in the request to this action, so
redirect_to :back could not be called successfully. If this is a test,
make sure
2007 Jun 15
4
404 Error in any controller/action on Media Temple
Hi everybody.
I''m a newbie on RoR. I have some experiencie developing in PHP or Java,
but I''m just starting with RoR.
A few days ago I signed up to the (gs) Grid Service on Media Temple.
This is my very first experience deplying RoR on a production
enviroment. Until now I just used the WebRick server on developement.
Well, the problem I''m having is that after
2008 Jul 08
3
undefined method `name' ...........
Hi Community....
I''m new in this game, so this might be a easy question, but I have
done my google, without result, so I will try this....
I''m learning ROR, and I''m using Patrick Lens ''Ruby on Rails'' book.
(This is written for ror 1.x - and I''m using NetBeans 6.1 - ror 2.x -
this might be the problem...)
But...
I have made this
2007 Jun 05
1
Mysterious Javascript showing up & trashing page
Every time I edit a particular page, a bit of javascript myseteriously
shows up when I save it. After that, the page does not lie correctly,
and the items at the end of the list are covered over by elements from
the stylesheet. The script is as follows:
<p> </p>
<p align="center"><font face="Times New Roman"><font
2006 Mar 09
4
Stop users accessing methods.
Hello all.
Is there a way to stop users from being able to access a controllers
methods without affecting the ability of other controllers to use them?
i.e
FooController
def secret
#Stuff
end
end
BarController
def index
redirect_to :controller => ''foo'', action => ''secret'', :id => ''007''
end
end
But directly
2009 Mar 30
0
Sub-Controller Issue on Host Server - Very Mysterious
Hello all. On my host server, I currently have the paths "<root>/cars"
and "<root>/cars/ford" and a default index page comes up for each. I
created these by running "ruby script/generate controller cars index"
and "ruby script/generate controller cars/ford index".
However, when I try to do the same thing to make
2001 Jun 28
0
Mysterious Third Vorbis header
Hi,
I'm curious what information booking keeps in. Because I haven't found documentation about that. If someone could tell me or point me Some URi to resource. I would be wery pleased.
Thanx,
Tuukka
---
||-|>Me olemme keskella jotain. jossa olemme totaalisen ulkopuolisia<|-||
Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/
--- >8 ----
List
2007 Apr 18
2
Datagrid with dhtmlxGrid
Hello i am trying to replace a desktop invoice system to a RoR sytem.
The system just use the keyboard, i mean all is codebar, and enter,
enter, enter....so on :P, well the thing is that i have been trying a
lot of ways, but i haven''t get any exit.
The way i am getting more close of what i want is with the dhtmlxGrid,
but hte problems is how i integrate this widget with the