similar to: acts_as_dropdown: NoMethodError on load

Displaying 20 results from an estimated 5000 matches similar to: "acts_as_dropdown: NoMethodError on load"

2006 Nov 04
0
[Markaby] select with acts_as_dropdown problem.
I''m using Markby to convert a standard form witth selects. Can someone tell me why this works: <tr> <td><label class="formLabel" for="task_owner_id">Owner</label></td> <td><%= select ''task'', ''owner_id'', Owner.to_dropdown %></td> </tr> But, the Markaby conversion
2007 Jan 31
1
Just copied my app to another puter, and now...
it doesn''t run : ( no matter where i go in my controller, I am getting this error message: The Browser View: ----------------- Status: 500 Internal Server Error Content-Type: text/html Application error The Log: ------------------------ Processing Base#index (for 127.0.0.1 at 2007-01-31 06:01:31) [GET] Session ID: 6a380e82bd3afb39dcb57ecfa143766d Parameters:
2009 Feb 02
2
looking for help with NoMethodError: undefined method `key?' for #<String:0x4795488>
Hi all, Any help with this would be appreciated. I''m using instant rails, updated to 2.2.2, on Windows XP. I''ve created my DB and scaffolded a few things and put some fixtures into place, and when I run the tests I get many errors that look like this: --------------------------------- 1) Error: test_the_truth(EntityTest): NoMethodError: undefined method `key?'' for
2006 Jun 21
0
acts_as_dropdown
Hi I am currently using the acts as drop down to create select lists. Is it possible to use this blogin to create grouped select lists. (ie one list, but with bold headings above groups of names) thanks, scott -- Posted via http://www.ruby-forum.com/.
2007 Apr 12
1
rspec on rails: undefined method ''controller_name''
Im trying to write a controller spec, but when I run it I get an error like the one below. I found Bug6707 (http://rubyforge.org/pipermail/rspec-devel/2007-March/002147.html ), but I get the error no matter how I run the spec ( whether I use rake or not) Any ideas? I am using 0.8.2 The Error: C:/rails/InstantRails/ruby/lib/ruby/gems/1.8/gems/rspec-0.8.2/lib/spec/expectati ons/sugar.rb:14:in
2008 Apr 15
2
NoMethodError in StoreController#add_to_cart
I''m trying to set up the Depot app from Agile Web Development and I got this error after C1 - Creating a Cart. The exact error looks like this: ------------------------------------------------------------------- NoMethodError in StoreController#add_to_cart You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occurred while
2006 Mar 30
4
Capistrano Shovel onto Textdrive SVN error
I''m using the Shovel recipe to deploy my lovely app to text drive. everyhting seems to be ok apart from the deploy action which fails saying that there is "No such file or directory" I''ve included the full error listing below. The SVN definately exists because we''re using for development. Does any one have any ideas what might be going wrong? Thanks Tom
2006 Apr 25
3
select boxe
yop, http://rubyonrails.org/api/classes/ActionView/Helpers/FormHelper.html ici j''ai vu qu''on pouvait g?n?rer des ?l?ment d''un formulaire gr?ce des m?thodes. Apres quelque petite recherches j''ai trouv? comment g?n?rer un select <%= select(''category'', ''category.id'', Category.find_all.collect {|category| category.nom})
2008 Jul 24
0
Errno::EBADF Send an Email in Rails using GMail
Hi, would someone please help me. I have been desperatley trying to fnd out for the last two days why the following code is not working. Any ideas. I''m running Instant Rails 1.4 / Rails version 1.2.5 / Ruby version 1.8.5 (i386-mswin32) / RubyGems version 1.1.1 / Action Mailer version 1.3.5 / Windows XP. Here is a description of my emailing application: in
2008 Jul 31
2
Freeze field in active record
Hello, I have a freeze field in a table (that I can''t change). When I try to find a record in this table I have the exception : C:/DATA/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/ activerecord-2.1.0/lib/active_record/attribute_methods.rb:104:in `instance_method_already_implemented?'' C:/DATA/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/
2006 Nov 04
0
Rails newbie - can anyone please help with many to many NoMethodError
Please can someone help with the following problem - I''m using LoginEngine and have a Users table linked many to many to a Plants table. The joining table is plants_users with plant_id and user_id (there are extra fields, so I''m avoiding has_and_belongs_to_many - plus it didn''t work :(). ::user.rb starts:- class User < ActiveRecord::Base has_many :Plants, :through
2010 Aug 24
11
will_paginate problem
Hi I am using rails 2.3.8 & ruby 1.3.7 & will_paginate 2.3.14 I have table name books. I am doing this code for pagination, In book_controller @@@@books = Book.paginate :page => params[:page], :per_page => 10@@@@ & in index.html.erb @@@@@<%= will_paginate @books %>@@@@@ Also added in environment.rb file this line @@@@@ require
2006 Oct 09
1
error running 'ruby script/console' => "uninitialized constant RAILS_ROOT" ??
Hi, Anyone suggest why when I try to run the console via ''ruby script/console'' I get the following "uninitialized constant RAILS_ROOT" ?? Error: ================================ V:\Source\testapp>ruby script\console Loading development environment. ./script/../config/../config/environment.rb:3:NameError: uninitialized constant RAILS_ROOT
2006 Aug 16
0
RAGI problems with new Rails update
Hi Did you guys ever upgrade to the latest Rails security version? cause I did, and now I''m having problems with RAGI. What did you do to remedy this? The following is copy and pasted after updating to the new Rails security patch and starting the server with Ragi configs inside the environment: >> C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:149:in
2006 Aug 12
2
Extend ActiveRecord::Base
Hi, I want to exten ActiveRecord::Base with own methods: class Stock < ActiveRecord::Base def compare_own ... end end But call Stock.compare_own fails: NoMethodError: undefined method `compare_own'' for Calendar:Class /var/lib/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1129:in `method_missing'' But why? I want to use only ActiveRecord from RoR, I
2007 Mar 12
0
Undefined method: hashed_password ?
I bought the Agile book to learn Rails, and everything was going smooth until Iteration F1: Adding Users. I''ve double checked my code, used the code provided by the book, and still it returns this same error message: **** NoMethodError in LoginController#add_user undefined method `hashed_password='' for #<User:0x473f0d8> RAILS_ROOT: ./script/../config/.. Application
2007 Jan 31
0
warning while requiring 'net\http'
Anyone knows what''s wrong with my configuration? Thanks >> require ''net\http'' C:/InstantRails/ruby/lib/ruby/1.8/net\http.rb:281: warning: already initialized constant Revision C:/InstantRails/ruby/lib/ruby/1.8/net\http.rb:282: warning: already initialized constant HTTPVersion C:/InstantRails/ruby/lib/ruby/1.8/net\http.rb:1121: warning: already initialized
2006 May 18
5
Uninitialized Constant in scaffold list page
I''m new to Ruby on Rails and just trying to get it up and running. I''m using RadRails, but I don''t think that matters for this problem. I''ve got a very basic app with one table and I used the scaffold generator for a table called datedgoals. The new page works fine, but then when it switches over to the list page, I get the errors below. Any idea how to fix
2006 Jul 01
0
Paypal IPN Gem
Having some problems. Using instant rails 1.3 updated with to rails 1.1.4. Gem Paypal and Money gems are installed. Also installed the plugin paypal, I see it in /vendor/plugins/paypal and restarted the server. I posted my error at the bottom. Any Ideas? Thanks Kindly -Ryan # I have a controller called byc, in it I have this action. def create @registrant =
2006 Sep 04
5
uninitialized constant BooleanClause
I''ve installed the latest Win32 gem and the acts_as_ferret plugin (i checked out the files and placed them in the vendor/plugins directory). When I try to search I get the following error: uninitialized constant BooleanClause RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace