Re: [Rails] wrong number of arguments (3 for 2) of stylesheet_link_tag

2014-12-23 Thread Cat Wild
I'm migrating from rails 4.2.rc2 to rails 4.2. If I use sass-rails 5.x, I would get the issue. Now I'm using sass-rails 4.x instead. 在 2014年12月23日星期二UTC+8下午3时29分39秒,Vivek Sampara写道: Also your sprockets version. On Tue, Dec 23, 2014 at 12:58 PM, Vivek Sampara ravens...@gmail.com

Re: [Rails] wrong number of arguments (3 for 2) of stylesheet_link_tag

2014-12-23 Thread Cat Wild
Okay, I give up tracking this issue by myself. sprockets (2.11.0) hike (~ 1.2) multi_json (~ 1.0) rack (~ 1.0) tilt (~ 1.1, != 1.3.0) sprockets-rails (2.2.2) actionpack (= 3.0) activesupport (= 3.0) sprockets (= 2.8, 4.0) 在 2014年12月23日星期二UTC+8下午3时29分39秒,Vivek Sampara写道: Also

[Rails] wrong number of arguments (3 for 2) of stylesheet_link_tag

2014-12-22 Thread Cat Wild
%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' = false % There seems to be no problem in my code but I do not know why -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and

Re: [Rails] wrong number of arguments (3 for 2) of stylesheet_link_tag

2014-12-22 Thread Vivek Sampara
Hi, Which version of rails are you using ? On Tue, Dec 23, 2014 at 11:18 AM, Cat Wild wildcat.n...@gmail.com wrote: %= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' = false % There seems to be no problem in my code but I do not know why -- You received

Re: [Rails] wrong number of arguments (3 for 2) of stylesheet_link_tag

2014-12-22 Thread Vivek Sampara
Also your sprockets version. On Tue, Dec 23, 2014 at 12:58 PM, Vivek Sampara ravensnowb...@gmail.com wrote: Hi, Which version of rails are you using ? On Tue, Dec 23, 2014 at 11:18 AM, Cat Wild wildcat.n...@gmail.com wrote: %= stylesheet_link_tag 'application', media: 'all',

[Rails] wrong number of arguments calling `request` (0 for 1) (ArgumentError)

2013-06-24 Thread ROR Architect
Here is the scenario Scenario: Successful login Given an unauthenticated visitor When visitor goes to /users/login And fills in Email with: amitpandya And fills in Password with: amitpandya And clicks the Login button Then amitpandya should be logged in And page

[Rails] wrong number of arguments (3 for 2)

2012-08-01 Thread deal bitte
wrong number of arguments (3 for 2) I am getting this error for the following lines. I have moved to Rails 3.2.6 and am facing this problem here. It worked in Rails 2.3.5 config.nested.add_link( 'Procs', [:historical_testprocedures], :action = 'editprocedures', :controller = 'Testruns' )

Re: [Rails] wrong number of arguments (3 for 2)

2012-08-01 Thread Colin Law
On 1 August 2012 12:02, deal bitte li...@ruby-forum.com wrote: wrong number of arguments (3 for 2) I am getting this error for the following lines. I have moved to Rails 3.2.6 and am facing this problem here. It worked in Rails 2.3.5 config.nested.add_link( 'Procs',

Re: [Rails] wrong number of arguments (2 for 0..1)

2011-08-09 Thread Kurtis Rainbolt-Greene
Try this: https://gist.github.com/1133491 On Mon, Aug 8, 2011 at 10:36 PM, praveen k. li...@ruby-forum.com wrote: Hi, please can anyone help me with this codewhen i am executing the following code, i am getting the error. code: @animals=Bird.find(:all,:conditions =['state like?', '%'

Re: [Rails] wrong number of arguments (2 for 0..1)

2011-08-09 Thread Colin Law
On 9 August 2011 06:36, praveen k. li...@ruby-forum.com wrote: Hi, please can anyone help me with this codewhen i am executing the following code, i am getting the error. code: @animals=Bird.find(:all,:conditions =['state like?', '%' + params[:number]+'%'])        

[Rails] wrong number of arguments (2 for 0..1)

2011-08-08 Thread praveen k.
Hi, please can anyone help me with this codewhen i am executing the following code, i am getting the error. code: @animals=Bird.find(:all,:conditions =['state like?', '%' + params[:number]+'%']) @ani=@animals.find(:all,:conditions =['city like?', '%bad%']) error: wrong number of

[Rails] wrong number of arguments error

2010-11-29 Thread John Merlino
Hey all, I did a script/generate controler users in console. Then I added the following to users controller: class UsersController ApplicationController def initialize(first_name, last_name) @first_name = first_name @last_name = last_name end def full_name() return

[Rails] wrong number of arguments (0 for 1) (ArgumentError)

2010-11-11 Thread Goli R.
if i run rails serve i am fa C:\forexrails server = Booting WEBrick = Rails 3.0.0 application starting in development on http://0.0.0.0:3000 = Call with -d to detach = Ctrl-C to shutdown server Exiting

RE: [Rails] wrong number of arguments (Wrox Beginning Ruby On Rails)

2010-02-19 Thread Pardee, Roy
version of rails that your author specifies. HTH, -Roy -Original Message- From: rubyonrails-talk@googlegroups.com [mailto:rubyonrails-t...@googlegroups.com] On Behalf Of seafront Sent: Tuesday, February 16, 2010 3:55 AM To: Ruby on Rails: Talk Subject: [Rails] wrong number of arguments

[Rails] wrong number of arguments (Wrox Beginning Ruby On Rails)

2010-02-16 Thread seafront
I'm reading a book Beginning Ruby on Rails I made an table, and tried to make an Model class. But it doesn't work. I made the table as below. mysql show columns from books ; +-+--+--+-+-++ | Field | Type | Null | Key | Default

Re: [Rails] wrong number of arguments (Wrox Beginning Ruby On Rails)

2010-02-16 Thread Colin Law
On 16 February 2010 11:54, seafront seafr...@gmail.com wrote: I'm reading a book Beginning Ruby on Rails I made an table, and tried to make an Model class. But it doesn't work. I made the table as below. mysql show columns from books ;

[Rails] Wrong number of arguments (0 for 1) in callback method

2009-11-13 Thread Kalpesh1 Patel
I was creating this simple rail application. my controller method looks like this: --- def create() @simple = Simple.new(params[:simple]) ##params coming from view @simple.save end --- And my model class Simple as below: --- class Simple ActiveRecord::Base set_table_name

[Rails] Wrong number of arguments (0 for 1)

2009-09-16 Thread RubyonRails_newbie
Hi everyone, I am running through the RailsSpace tutorial. I'm trying to figure out the advanced login section, which in short creates a cookie and an authorization token in the users table in the database. My trouble is, I'm getting error: Wrong number of arguments (0 for 1) the code that has

[Rails] wrong number of arguments (0 for 1) in []

2009-07-02 Thread JannaB
I am creating a multiple-selection list box with : % form__list1 = [] % %= select_tag, options_for_select([A,B,C,D], selected =A), html_options = {size = 5, multiple = true}) % I get wrong number of arguments (0 for 1) alluding to form__list1[] . How else should I specify this to not have this

[Rails] wrong number of arguments (1 for 0)

2009-06-04 Thread springbok
Hi, I hope someone can help me because this is driving me crazy, I've spent hours trying to track this down. I'm trying to convert a Rails 1.1 to Rails 2.3.2 and I'm getting the following error when trying to save a many to many relationship. I've double checked all the associations, I've used

[Rails] wrong number of arguments (3 for 2)

2009-03-03 Thread Zqj Zqj
Showing vendor/plugins/community_engine/app/views/users/new.html.haml where line #40 raised: wrong number of arguments (3 for 2) Extracted source (around line #40): 37: %label{for=birthdate} 38: Birthday: 39: %em (Required: you must be at least 13 years old to sign

[Rails] wrong number of arguments (1 for 0)

2009-02-18 Thread Sony Sebastian
Hello, I am new to ruby on rails. When I tried to create a session I am getting an error, 'wrong number of arguments (1 for 0)', in my controller. ArgumentError in CustomerController#add_to_cart wrong number of arguments (1

[Rails] Wrong number of arguments?

2008-12-29 Thread Ryan Ororie
I'm going through a tutorial here and running into an error I'm not sure how to fix..this is my first foire into sessions. Trying to create a shopping cart for a store app. I'm getting this error: wrong number of arguments (1 for 0) RAILS_ROOT: script/../config/.. Here is my cart_item.rb

[Rails] wrong number of arguments (0 for 1) error.... Help!!!

2008-12-08 Thread Jay Mark
I am using Rails 2.0.2 with mysql database I am getting this error when running a query with Find_by_sql: wrong number of arguments (0 for 1) Here are my queries: @authors = Author.find_by_sql[SELECT * FROM authors WHERE name = ?', name] Also @books = Books.find_by_sql[SELECT * FROM books

[Rails] Wrong number of arguments (2 of 0)

2008-10-24 Thread Thierry Delbart
I'm new with RoR. I have a simple migration file: class CreateClubs ActiveRecord::Migration def self.up create_table :clubs do |t| t.columns :name, :string t.columns :ref, :string t.columns :description, :string t.columns :local, :string t.timestamps

[Rails] Re: Edge rails - wrong number of arguments in validations.rb

2008-09-12 Thread Drogomir
No one is having this error while using edge rails? On Sep 11, 12:45 am, Drogomir [EMAIL PROTECTED] wrote: Hi, I have strange error onedgerailswhile doing validates_uniqueness_of or some other validates_* methods. basically it looks like that:http://pastie.org/269935 it's weird cause

[Rails] Edge rails - wrong number of arguments in validations.rb

2008-09-10 Thread Drogomir
Hi, I have strange error on edge rails while doing validates_uniqueness_of or some other validates_* methods. basically it looks like that: http://pastie.org/269935 it's weird cause ActiveRecord::Errors#add has 3 arguments defined in validations.rb...