Displaying 20 results from an estimated 800 matches similar to: "ArgumentError: Unknown key(s): dependant"
2005 Dec 11
4
Problem with acts_as_paranoid: "ArgumentError: Unknown key(s): group"
Here''s the full error:
1) Error:
test_add_message_to_existing_ticket(TicketTest):
ArgumentError: Unknown key(s): group
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.4/lib/active_support/core_ext/hash/keys.rb:48:in
`assert_valid_keys''
/usr/lib/ruby/gems/1.8/gems/acts_as_paranoid-0.2/lib/acts_as_paranoid.rb:125:in
`validate_find_options''
2011 Apr 12
4
OS X - `require': no such file to load -- sqlite3/sqlite3_native
I''ve searched and search, tried a number of things like unstalling
sqlite3 and reinstalling. Reinstalling Rails, building sqlite3 from
source, etc. Nothing seems to work. When I try to start up my server I
get the following:
MacBook-Pro:splash Ross$ rails server
/Volumes/Macintosh
HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/sqlite3-1.3.3/lib/sqlite3.rb:6:in
2011 Aug 25
2
Problem with rails generaterspec:install, Error-Message: no such file to load, sprockets-railtie (loadError)
Hey guys,
I''m a RoR-Beginner and I started learning it with the RoR-Tutorial.
Actually I''m at this chapter (http://ruby.railstutorial.org/chapters/
static-pages#top) and try to install rspec. But everytime when I try
to use "rails g rspec:install" I get this error message:
C:\Sites\rails\rails_projects\sample_appp>rails g rspec:install
2012 Nov 06
2
rspec failure upon revisit
I just returned from a different project after taking a few weeks off of
my tutorial. I''m using Ruby on Rails 3 Tutorial - Learn Rails by
Example by Michael Hartl.
After rebooting my server I ran an rspec spec/ command to check to see
if there were any problems and this is what I received. I didn''t modify
anything except I did overwrite users_controller.rb and
2006 Jan 23
6
undefined method assert_valid_keys
Guys,
I''m having trouble understanding why I am getting the following error
message. I''ve double checked my code and everything looks good. Can
anyone share any insight into the message?
Thanks!
John
------------------------------------------------------------------------------
undefined method `assert_valid_keys'' for :hangars:Symbol (NoMethodError)
2012 Jul 17
1
AR deprecated finders
Hi all,
I had troubles while running tests on Active Record:
bundle exec rake test_sqlite3
/Users/oscardelben/code/rails/activesupport/lib/active_support/core_ext/hash/keys.rb:70:in `block in assert_valid_keys'': Unknown key: extend (ArgumentError)
This is because some models used by tests are using the extend option which now seems deprecated.
Should related tests be
2009 Jun 27
1
Problem with :touch in belongs_to
I''ve read in rails api that there is a touch parameter and I want to
use it in my application. I have something like that
class User < ActiveRecord::Base
has_many :phones
after_update :updated
def updated
...
end
end
class Phone < ActiveRecord::Base
belongs_to :user, :touch => true
end
I want that every change of any phone number would change User
updated_at
2008 Apr 15
1
acts_as_paranoid Unknown key(s): with_deleted
Trying this straight from the README:
I have acts_as_paranoid in my model (Course), and added the deleted_at
column.
This is OK:
Course.find_with_deleted(:all)
Course.find(:all, :with_deleted => true)
gives:
ArgumentError: Unknown key(s): with_deleted
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/core_ext/hash/keys.rb:49:in `assert_valid_keys''
2006 Jan 17
15
legacy database and finder_sql nightmare!
This is my first rails app with a legacy database and I''m having a
terrible time getting the models set up correctly. I have an order
table that has a primary field named order_number. I have a name table
with a primary of item_number. These two tables are liked by the
item_number and the order_number, but not as you might think. If the
order_number is 2500, then each entry in
2006 May 20
1
acts_as_paranoid overrides ActiveRecord::Base??
Guys,
I am trying to figure out what exactly does this line do at the end of
"acts_as_paranoid" plugin?
ActiveRecord::Base.send :include, Caboose::Acts::Paranoid::ActiveRecord
My problem: I have some classes that I use acts_as_paranoid, and others
with tagging support. Classes declared as taggable, throw error, which
appears to be in the acts_as_paranoid version of the
2007 Jul 14
8
Specing Layouts
Hi,
I''ve just started to try and spec my application.html.erb layout as one of
the view specs but it totally barfs.
I''m guessing that it''s due to the yield statements in the layout.
Any clues as to how to proceed?
Cheers
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Feb 17
3
Migration Errors?
Hi there,
I just bought the Rails Recipes and PDF preview of the book. So far
it''s excellent. I decided to try Chapter 8 of the book regarding
tagging.
I''ve done migrations before, and I feel comfortable with them, however
this error stumps me.
--------------------------------------------------
antrover:~/RubyProjects/rlog dhoefler$ ruby script/generate migration
2011 Sep 08
1
Magic Multi Connections gem + Rails 3.1
Hello,
Like in topic, did anyone tried to run this gem under 3.1? I''m getting
error that mirror_db_connection is not valid key:
ArgumentError: Unknown key: mirror_db_connection
from /Users/nopik/.rvm/gems/ruby-1.9.2-p180@christmas/gems/
activesupport-3.1.0/lib/active_support/core_ext/hash/keys.rb:44:in
`block in assert_valid_keys''
from
2007 Aug 28
1
what''s the view format in trunk?
dumb question but what''s the view format in trunk?
I have a simple router:
Merb::Router.prepare do |r|
# default route, usually you don''t want to change this
r.default_routes
# change this for your home page to be avaiable at /
r.add ''/'', :controller => ''upload'', :action =>''new''
end
I have a simple controller
2010 Nov 24
1
NameError in Devise/sessionsController#new
I created a sample application.
Added devise in it, it works fine.
Then added cancan gem into it.
Created an ability class. define some permissions.
Then added line
load_and_authorize_resource
to the Application Controller, after that when i go to the page
http://0.0.0.0:3000/users/sign_in it gave the following error,
NameError in Devise/sessionsController#new
uninitialized constant Session
2011 Oct 07
1
403 Error Dont know whats wrong.
Hi,
I am quite new to ruby and am programming an application to send sms
using rest_client gem. I so far have code on one of my modules which
tries to send an sms to a number. It gives the 403 error -
RestClient::Forbidden in SMSController#index
403 Forbidden
Rails.root: /Users/user1/Desktop/rails_projects/sms_app
My code in the module looks as follows - before adding this code i had a
simple
2010 Jul 22
9
Something went wrong.
My app works fine in development on my laptop but in production on my
server I get "We''re sorry, but something went wrong. We''ve been notified
about this issue and we''ll take a look at it shortly."
I am using Rails 3, Ruby 1.8.7, Apache and passenger 2.2.15
I get the welcome aboard page in production if I just go to the domain
name but as soon as I want data
2007 Dec 04
4
eventlog
Hi,
Hm, the string inserts are different, too. Any encoding issues? Your
user name uses extended ASCII, too, right? Not sure if that''s
significant or not.
I''ve cc''d the win32utils-devel list to see if anyone has any ideas.
Thanks,
Dan
botp wrote:
> On 12/4/07, Daniel Berger <djberg96 at gmail.com> wrote:
>> Can you tell us which record numbers in
2008 Mar 20
2
Anyone having problems with asset_host not getting set up right?
Hey All,
I think I found a bug but I would be suprised since it would cause major
problems.
We setup the asset_host in init.rb with:
if File.exist?(facebook_config)
FACEBOOKER = YAML.load_file(facebook_config)[RAILS_ENV]
ENV[''FACEBOOK_API_KEY''] = FACEBOOKER[''api_key'']
ENV[''FACEBOOK_SECRET_KEY''] =
2012 Feb 03
10
ruby on rails 3 tutorial book chapter9 Signin Failure
Hi I have problem trying to pass the signin failure test.
This is the test code of the sessions_controller.rb
def create
user = User.authenticate(params[:session][:email],
params[:session][:password])
if user.nil?
flash.now[:error] = "Invalid email/password combination."
@title = "Sign in"
render