similar to: wrong number of arguements (1 for 0) on ActiveRecord::Base#send

Displaying 20 results from an estimated 400 matches similar to: "wrong number of arguements (1 for 0) on ActiveRecord::Base#send"

2013 Nov 26
2
'$ rake db:create' don't work!
Hey guys, I''m new to learning RoR and I try to do a database with mysql and I have a problem. First I create a a folder in my desktop and after with command in the terminal on Mac Os Mavericks I create a project: rails new vota_prato -d mysql after I will try to create a database with this command: $ rake db:create and I have this error: MacBook-Pro-de-Romenig:vota_prato romenig$ rake
2013 Sep 02
1
Problem with Filling Tables.
I have an application that has models for beer styles. Every beer style will have a name and description. It will also contain a list of beer models. Every beer model will contain a name. I want my application to fill in the list of styles with some default data. #Beer migration file: class CreateBeers < ActiveRecord::Migration def change create_table :beers do |t| t.string
2013 Oct 16
1
Issue with Deploying a Rails app on VPS - cannot load such file -- unicorn/launcher
I am trying to deploy a rails application to a digitalocean VPS droplet. I have the following setup Ruby on Rails on Ubuntu 12.10 (Nginx + Unicorn). I have installed Ruby ruby-2.0.0-p247 and rails Rails 4.0.0 via rvm but when I try to restart Unicorn I get the following error. /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems /core_ext/kernel_require.rb:45:in
2013 Oct 23
9
rails generate scaffold - ERROR
Hi, I just installed ROR using the rvm using these instructions: http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/ Using Ubuntu 12 on VirtualBox I''m trying to create a demo_app rails generate scaffold User name:string email:string gives me this error: -- /home/natmanu/.rvm/gems/ruby-2.0.0-p247/gems/execjs-2.0.2/lib/execjs/runtimes.rb:51:in `autodetect'': Could not
2011 Feb 28
1
Regression with many independent variables
Hi, I am trying use lm() on some data, the code works fine but I would like to use a more efficient way to do this. The data looks like this (the data is very sparse with a few 1s, -1s and the rest 0s): > head(adj0708) MARGIN Poss P235 P247 P703 P218 P430 P489 P83 P307 P337.... 1 64.28571 29 0 0 0 0 0 0 0 0 0 0 0 0 0 2 -100.00000 6 0 0
2010 Dec 18
1
how to use expression as function arguements?
Hi all, ##################################### integ=function(f,n){ # computes vector y = f(x) x=runif(10000) y=f hatI=mean(y) hatI } # example of use integ(x^2+x+100,100) ##################################### it returns an error says no obj 'x' how do I 'tell' R to treat 'f' as an input expression? Thanks. casper -- View this message in context:
2004 Apr 28
2
openssh continues to process dash arguements after hostname
Processing dash arguments after the hostname is inconsistant with getopt() usage. It is also inconsistant with other ssh/rsh implementations. It is also not documented. openssh accepts treats "ssh host -l user" as "ssh -l user host" when infact it should be attemption to execute "-l user" on "host" as the original user. It looks like someone wanted to
2003 Nov 19
1
Specifying arguements in user defined functions
Dear R subscribees, First, I am new to R and I apologize if the question is naive. I am trying to find out where arguments specifications can be found. For example, the code below (at the very bottom of this email) contains the argument 'digits' in the function 'lin' which printout my output to the 3rd decimal place. Somebody showed me the 'digits' argument, but did
2013 Oct 07
0
ruby script/plugin install ...
I am trying to migrate a rails app from the rails 2.x world (which was the last time I worked with rails) and I''m trying to run the command: ruby script/plugin install git://github.com/activescaffold/active_scaffold.git --force which returns: /home/user/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'': cannot load such
2007 Jun 15
1
A question about logical controls and function arguements
Dear R-help subscribers, I'm trying to write a function to generate data simulating the image created by a point radiation source in a plane on a screen where there is filter with a single circular aperture in it between the source and the screen. Following some guides (including Intro to R and some I found online) and examples I have specified the function (full code below question) with
2012 Aug 31
1
after_fork - ActiveRecord::AdapterNotSpecified
Hi all, I''m fighting with the after_fork hook and my sinatra application. The Sinatra app is using active_record, In my unciron.rb file I''m using preload_app true after_fork do |server, worker| ? defined?(ActiveRecord::Base) and ??? ActiveRecord::Base.establish_connection End but I always get the error: ERROR -- : ActiveRecord::AdapterNotSpecified
2007 Dec 24
2
backgroundrb script crashing on startup
Everything works fine on my development box (Ubuntu 7.10, Ruby 1.8.6) but on my server (Fedora Core 6, Ruby 1.8.5) when I run script/backgroundrb start, the process fails to start. This is with Rails 2.0.2 frozen in the app, and I have the most recent version of the plugin (r297). Is Ruby 1.8.6 a requirement for backgroundrb now? I can''t figure any other reason it would fail...
2007 Dec 20
0
Fwd: [ mocha-Patches-16424 ] Ruby 1.9 Compatibility
---------- Forwarded message ---------- From: noreply at rubyforge.org <noreply at rubyforge.org> Date: 20 Dec 2007 15:48 Subject: [ mocha-Patches-16424 ] Ruby 1.9 Compatibility To: noreply at rubyforge.org Patches item #16424, was opened at 2007-12-19 02:43 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7479&aid=16424&group_id=1917 Category: None
2012 Jul 23
4
uninitialized constant ActionController::Flash::FlashHash [NameError])
My application, a very simple general ledger, that worked very well until June 26 does not work any longer. It is used under Ubuntu 12.04 and I believe there was a Ruby update after that. What happens? When I try to start the appIication I get the following output in my web browser: ActionDispatch::Session::SessionRestoreError Session contains objects whose class definition isn''t
2011 Sep 10
1
rbenv and cap deploy
Hi, I have installed rbenv on my development machine and got it working. For now I run 1.8.7. But when I try to do cap deploy i get an error: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 1.8/rubygems/custom_require.rb:31:in `gem_original_require'': no such file to load -- bundler/capistrano (LoadError) Doing rbenv rehash does not help in my deploy.rb: require
2012 Feb 14
6
cannot load such file -- openssl (again)
This problem has been discussed a number of times, but none of the given solutions seems to work for me. Problem: Trying to generate the infrastructure for testing with Cucumber gives the following error ~/.../OTK-register$ rails generate cucumber:install /home/tpollak/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in
2008 Jan 02
0
Re: RubyOnRails build 8525 failed
Fix for the bad (failing) test here: http://dev.rubyonrails.org/ticket/10664 On Jan 2, 5:33 pm, alexey.verkhov...@gmail.com wrote: > The build failed. > > CHANGES > ------- > Revision 8522 committed by bitsweat on 2008-01-02 09:03:56 > db:sessions:clear task uses session_table_name method. Closes #10631 [Cheah Chu Yeow] > > M /trunk/railties/lib/tasks/databases.rake >
2013 Mar 11
7
Installing Ruby 2.0.0-p0 using Rbenv on Ubuntu 12.04.2 LTS
I am having a problem installing Ruby 2.0.0-p0 using rbenv install on Ubuntu 12.04.2 LTS. I have clean version of Ubuntu 12.04.2 LTS running on Virtualbox. I am getting this error and the build is failing. I think I read that the new RubyGems requires https. I have tried rbenv install --with-openssl-dir=/usr/bin, but with no success. The Ruby openssl extension was not compiled. Missing
2012 Jan 21
4
why doesn't an instance of Object get Class's new instance method?
"Object is the root of Ruby''s class hierarchy. Its methods are available to all classes unless explicitly overridden." Wouldn''t Class class be at the root of the class hierarchy? After all, look at this: 1.9.2p290 :006 > Object.instance_of? Class => true Object is an instance of class, after all we can use one of Class'' instance methods on Object:
2013 Jul 13
4
?include binstubs in version control
I am using rbenv. Just a quick question: Is it good practice to include binstubs in version control? I have looked at the binstubs created; they look pretty harmless. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to