similar to: NoMethodError in partial driving me mad

Displaying 20 results from an estimated 6000 matches similar to: "NoMethodError in partial driving me mad"

2007 Oct 08
1
Rails reverses apostrophes
Hi, I am quite new to Ruby on Rails so this might have a very simple answer... My problem gives the following error message when I try to call the count function for an item. Mysql::Error: Unknown column ''TournamentTemplate'' in ''where clause'': SELECT count(*) AS count_all FROM action_logs WHERE (action_logs.loggable_id = 1 AND action_logs.loggable_type =
2007 May 30
2
ActionView::TemplateError
Hi, I have a strange problem that only occurs on the production server. I''ve been banging my head for hours trying to figure it out with no success. Below is a copy of the error from the production log. ActionView::TemplateError (Expected /www/rails_apps/scanlan/current/ public/../config/../app/models/image.rb to define Image) on line #6 of app/views/admin/design/_record.rhtml: 3:
2007 Jul 17
5
habtm confusion
Hello friends! I am trying to make a database that will have a group of people set to committees, and a person can be in multiple committees, and a committee obviously has multiple people. The people are senators at my university. These are my current models: senator.rb: -- class Senator < ActiveRecord::Base validates_presence_of :first_name, :last_name, :floor has_and_belongs_to_many
2007 Jun 25
2
undefined method `each' for ***:Class PROBLEM
Hi, i am very new to ROR, this is my 2nd day since i solve the problem of database connection. when i started to write some codes, i got stuck. here is the situation and please give me some help. i have a "posts" table in my database CREATE TABLE `mapapp`.`posts` ( `id` int(11) NOT NULL auto_increment, `title` varchar(255) default NULL, `body` text, PRIMARY KEY (`id`) )
2007 Dec 07
4
strange error on mock proxy
I''m banging my head over this really strange error in a view test when I run "rake spec". The weird thing is that I don''t get the error when I run the spec file by itself. Here is the spec (I know, fixtures are the devil): describe "/units/new.html.erb here" do fixtures :units, :accounts, :groups it_should_behave_like
2009 Feb 25
9
local variables in partials lead to NameError
I know I must be doing something dumb, but I can''t seem to send a local variable to my partial. The below code leads to the following error: NameError in Residential_listings#new undefined local variable or method `foo'' for #<ActionView::Base: 0x3fb53f8> I am trying to call the variable ''foo'' in a partial called _attachment.html.erb, which is nested in
2007 Oct 24
8
validates_confirmation_of not working
Hello to everyone, Well, very frustrated with this one because I am following the example straight from the documentation and it is not working. First when I try: validates_confirmation_of :password, :on => :password_update (password_update is a def in my User model which works fine without this validation in please) I get the following error: TypeError in UsersController#update_password
2006 Jun 08
1
No rhtml, rxml, or delegate template found
hi , i''m having a problem with rendering a partial , the partial is in the apps/view/polls folder with the name : _antwoorden_user.rhtml in the view i''m rendering it with <% if @user %> <%= render :partial => ''polls/antwoorden_user'', :locals => {:poll => @poll, :user => @user} %> <% else %> .... gives me the error => No
2007 Aug 19
3
fastcgi issue on production
I just deployed my rails app to my production server. It''s all working locally, but when I switched it over to the production server (at dreamhost) I get this error: # Logfile created on Sun Aug 19 15:22:48 -0700 2007 by logger.rb/ 1.5.2.9 [19/Aug/2007:15:22:48 :: 1841] starting [19/Aug/2007:15:22:48 :: 1841] Dispatcher failed to catch: You have a nil object when you didn''t
2013 Mar 24
5
Rails 4.0 has_many_through and fields_for
Hi all, I am trying to reproduce rails 3.2 behaviour with fields_for and nested attributes. class ControllerAction < ActiveRecord::Base has_many :interactions, dependent: :destroy has_many :roles, through: :interactions scope :controllers, lambda {|name| where("controller_name_id = ?", name)} scope :actions, lambda {|name| where("action_name_id =
2007 Nov 15
6
Link_to popup divorced from controller?
Here''s my case: Using a link_to popup window to show a related help file of an element on a page. The problem: Window pops up perfectly, but refuses to carryover @instance variables in the controller that I referenced in the link_to command. The tests: - I have the right controller/class, because it renders a specific template, which is what it does. - I have the right template/view,
2007 Jun 22
2
problem with AR and 'virtual' multiparameter attributes.
Hello, I have a model which I would like to have a ''virtual'' date column. This column wouldn''t exist in the database, but would exist for validation, etc. The data would be provided in the form of a date_select in the view. This produces a multiparameter attribute. My problem is that the ''execute_callstack_for_multiparameter_attributes'' method in
2007 May 05
4
Rails Installation Fails - InstantRails 1.3a
I downloaded InstantRails 1.3a, and unzipped it to c:\InstantRails I then ran gem install rails --include-dependencies in the Ruby Console Window A lot of it worked, but I saw these errors (with a bit of surrounding output) Installing RDoc documentation for activerecord-1.15.3... Installing RDoc documentation for actionpack-1.13.3... lib/action_controller/routing.rb:1061:30:
2007 May 12
4
help, 1 error(s) on assignment of multiparameter attributes
Hi everyone! I just started learning Ruby on Rails about a week ago for a school project, and can''t seem to find a solution for something. I have this inside the form inside of edit_albums.rhtml: <%= start_form_tag :action=>''proccess_edit_album'', :id=>@album.id %> .... Release Date: <%= datetime_select(:album, :release_date, :start_year => 1960)
2008 Dec 20
3
IMAP_Authenticatable Problem
Good morning all, I''ve been using the imap_authenticatable plugin for about a year now without incident. All of a sudden, I tried logging in this morning and this error is showing up in the logs. Does anyone have any idea what could be causing this or how to fix it? Thanks, Pete NoMethodError (undefined method `disconnect'' for nil:NilClass):
2007 Jul 04
5
stack level too deep
Hi, I have a SystemStackError. Here is the stack (sorry if it''s a little long) : app/models/line_item.rb:14:in `product'' app/models/line_item.rb:14:in `product'' app/controllers/store_controller.rb:188:in `redirect_to_paypal'' /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/associations/association_proxy .rb:123:in `each''
2007 Oct 24
7
NameError in CustomersController#index
I''m new to Rails. I finished the Cookbook tut. no problem. I''m trying to start a project of my own, follow the same instructions but the difference is I created the database myself. After I create the scaffolds and try them out I get this error NameError in CustomersController#index uninitialized constant Customer RAILS_ROOT: ./script/../config/.. Application Trace |
2008 May 07
1
Actionwebservice
I am just learning some about web service. But many guys still use Java (Jws). But I wanna try ROR. There are less information about it. I can''t get install plugin in the ROR 2.0.x. So I followed the standard textbook("Agile_Web_Development_With_Rails-2nd" and "Ruby on Rails for PHP and Java Developers") I almost finished it. However, I can''t find my api
2007 Oct 07
10
Rails to English
I am currently using the book "Agile Web Development With Rails" (2005). I am working on a fully function web application that has a shopping cart. The web page displays this, ActiveRecord::StatementInvalid in AdminController#create Mysql::Error: #23000Column ''date_available'' cannot be null: INSERT INTO products (`image_url`, `date_available`, `price`, `title`,
2007 Aug 06
4
problem with rails_root
Hi everybody, I used a openseradmin who is based on rubygem (i suppose ), so when i start my server of this openseradmin in the http://localhost:3000, i reciceved some messages like this: SocketError in LoginController#login getaddrinfo: Name or service not known RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace