similar to: NoMethodError in AdminController#index

Displaying 20 results from an estimated 20000 matches similar to: "NoMethodError in AdminController#index"

2009 Dec 24
4
NoMethodError
Hi, In a few words, can someone explain to me the NoMethodError. Googling for answers will get you to something but a direct answer from experts will give you something. NoMethodError in Book#new Showing app/views/book/new.html.erb where line #4 raised: undefined method `title'' for #<Book id: nil, created_at: nil, updated_at: nil> Extracted source (around line #4): 1:
2010 Mar 24
1
Trouble starting the server, HELP PLEASE!
can anybody tell me what is going wrong from the information taken from the development log below. WHen i start WEBrick and try and view a page on the localhost i get the following error, "We''re sorry, but something went wrong.We''ve been notified about this issue and we''ll take a look at it shortly." I''m a complete beginner and really want to start
2009 Jun 13
5
undefined method `valid_password?'
I''m trying to set up the authlogic gem for rails, just after logging my user I get this weird error: NoMethodError in Usuari sessionsController#create undefined method `valid_password?'' for #<Usuari:0xb69b9a54> RAILS_ROOT: /home/cocozz/dev/enruscats Application Trace | Framework Trace | Full Trace
2009 Apr 22
3
Error on running any controller- Noob question
Hi , I am running on Vista with webrick ... When I generate controllers , models and views I get an error as under. C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/ dependencies.rb:105:in `const_missing'' C:/ROR_lpapp042109/app/controllers/afflnetworks_controller.rb:5:in `index'' I tried reinstalling but kept stumbling on this. gem -v 1.3.2 rails -v 2.3.2
2010 Apr 09
3
"We're sorry, but something went wrong"
can anyone help with this??? /!\ FAILSAFE /!\ Thu Apr 08 16:58:27 -0700 2010 Status: 500 Internal Server Error unknown error C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `initialize'' C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `dlopen'' C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `dlload'' C:/Ruby/lib/ruby/1.8/dl/import.rb:27:in `each''
2009 Jun 30
2
First time problem
This is the first time I am Running ruby on rails. When running the "blog" application I got the message "We''re sorry, but something went wrong. We''ve been notified about this issue and we''ll take a look at it shortly." Then I checked the CODE\blog\log\development.log and got this:
2010 Mar 12
7
"We're sorry, but something went wrong." from RoR app
Hi All, "We''re sorry, but something went wrong." is the message I got when I started up an RoR app in the environment: Rails 2.3.5 Ruby 1.8.6 WinXP-Pro/SP3 Firefox 3.6 MySQL 5.0.37-community-nt Mongrel The app under development was working fine until I (stupidly) thought I needed to upgrade MySQL to 5.1.44. I took the precaution of MySQL-dumping the development db before
2009 Jun 09
3
NameError what is it?
I have the following code in app/controllers/processjobs_controller.rb # class ProcessJobsController <ApplicationController def index @ProcessJobs = ProcessJobs.find(:all) end end # This is my route file .. ActionController::Routing::Routes.draw do |map| map.resources :ProcessJobs map.connect '':controller/:action/:id'' map.connect
2011 May 21
4
request.format = :mobile causes error "undefined method `ref' for nil:NilClass"
I have a strange problem with setting request.format = :mobile I can reproduce this problem on a completely fresh Rails 3.0.7 app with no special gems. This seemed to work well in Rails 2 but for some reason is hiccuping here, not sure what''s different in Rails 3 that makes this hiccup. If you look at the stack track, it doesn''t even pass through my app stack once -- weird --
2010 Aug 19
3
Help: "500 Internal Server Error"
Hi guys, I am a completely ruby & rails newbie. i have being struggling on this issue for almost 2 days, still can not figure out the problem. there are two websites i''m trying to set up a development environment on my pc running windows xp 32 bit version. a front-end customer facing page & back-end admin page. the procedure i have gone through is: 1. install ruby version 1.8.6
2012 Apr 24
1
Rails 3 Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
Hi Guys, Facing a weird error . Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2) It seems to be happening with mail sending mail . I am using AUTHSMTP to send mails . Unable to send mail and the app breaks . Any help will be appreciated . Same code worked with ruby 1.8 and rails 2.3.x . *Configuration* Rails 3.2 Ruby 1.9 Engineyard , Linux Instance *Backtrace :*
2012 Apr 24
1
Rails 3 Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
Hi Guys, Facing a weird error . Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2) It seems to be happening with mail sending mail . I am using AUTHSMTP to send mails . Unable to send mail and the app breaks . Any help will be appreciated . Same code worked with ruby 1.8 and rails 2.3.x . *Configuration* Rails 3.2 Ruby 1.9 Engineyard , Linux Instance *Backtrace :*
2010 May 06
0
Problems using exception_notification 2.3.3.0
Hi. I am using rails 2.3.5 I just installed exception_notification 2.3.3.0 using ''sudo gem install exception_notification'' I have add config.gem "exception_notification" in environment.rb and ''include ExceptionNotification::Notifiable'' in application_controller.rb Now I am trying it out in development environment. It seems to catch my exception
2008 Mar 27
3
Help with authentication errors
Hello, I have been working through two books, "Agile Web Development with Rails, 2nd Ed." and "Ajax on Rails". I''m using Rails2.0. In both cases, I run into an authentication error when doing the examples. In AWDwR, when trying to add new information to the database (p. 68) I get ActionController::InvalidAuthenticityToken in AdminController#create
2010 Jan 16
0
Postgresql error
Hello, I successfully dumped the database in postgresql. Now I want to connect my rails application to the postgresql database, able to start the server, but I am getting this error when I browse the application from the browser. script/server => Booting WEBrick => Rails 2.3.5 application starting on http://0.0.0.0:3000 Sphinx cannot be found on your system. You may need to configure the
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 =
2009 Dec 21
3
beginner problem
Hi, I´m starting using rails. I have one problem. I create a controller, the code is the next: class PlayersController < ApplicationController scaffold:player end I did all the things that I suppose to do, but a problem appears when try to open my webpage application. The error is the next NoMethodError in PlayersController#index undefined method `scaffold'' for
2010 Jun 15
3
Newbie trying to set up rails with MySQL
Hello -- Please pardon my newness -- I''m just getting started with rails, and I''m having some difficulty getting it set up with MySQL. I am able to get the basic ruby server running (script\server). When I created a new page (using script/generate controller about index), I am not able to navigate to the new page, and Ruby either crashes or gives me an error: /!\ FAILSAFE /!\
2010 Dec 10
0
Encoding issues when uploading files
Hello everybody, I have some troubles with uploading files in my Rails project. I use Rails 3, Ruby 1.9.2, rack 1.2.1, and both webrick / passenger on apache I was investigating and have isolated the strange behaviour on a simple empty project: view: <% form_tag({:action => ''upload''}, :multipart => true) do %> <%=text_field_tag :desc %>
2010 Jul 16
31
Added associations but don't see generated methods
Hi, I''ve got a Rails app working that includes two two classes, etc.: Expense & Vendor. I eventually learned that the mental concept I had of their relationship should be express in Rails as: class Expense < ActiveRecord::Base; belongs_to :vendor; end class Vendor < ActiveRecord::Base; has_many :expenses; end