Displaying 20 results from an estimated 10000 matches similar to: "Error on running any controller- Noob question"
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 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:
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
2010 Mar 23
3
NoMethodError in AdminController#index
I am newb in ror. I''ve googled and found no concrete answer to my
problem below:
NoMethodError in AdminController#index
undefined method `scaffold'' for AdminController:Class
RAILS_ROOT: /home/darwin/Sites/music_library
Application Trace | Framework Trace | Full Trace
/home/darwin/Sites/music_library/app/controllers/admin_controller.rb:3
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:
2009 Jun 22
1
getting error can't modify frozen hash
Hi,
When I upgraded my rails application to rails 2.3.2 I am getting
error ''can''t modify frozen hash'' on using
@something.update_attribute(params[:something]).
Can anyone help me who is familiarize with this bug?
Thanks,
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
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 Jul 08
2
RuntimeError (JPEG marker not found!):
Hi,
while generating the PDF file , i am getting following error..
please help for me.
RuntimeError (JPEG marker not found!):
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/
graphics/imageinfo.rb:176:in `
measure_JPEG''
C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/
graphics/imageinfo.rb:174:in `
loop''
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 08
2
Connecting to SQLServer
New to rails. Installed rails on my XP desktop, and setup my first app
that will use an existing SQLServer database. I am able to connect to
SQLServer using odbc with following code.
require ''rubygems''
require ''ActiveRecord''
ActiveRecord::Base.establish_connection(
:adapter => ''sqlserver'',
:mode => ''odbc'',
:dsn
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 03
2
PDFKit Fork() Function Unimplemented Error - HELP!
Hello All,
We''re working on a project on a Windows machine that will use PDFKit to
convert an HTML page to a PDF. I have followed all the instructions at
GitHub (http://github.com/jdpace/PDFKit), for installing wkhtmltopdf and
PDFKit, then creating the config file in ''config/initializers/pdfkit.rb''
and then finally, setting up Middleware for Rails apps in
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 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
2009 Apr 20
1
Upgrading rails to 2.3.2 - CookieOverflow issue
Folks,
I am trying to upgrade system from rails 1.3.x to 2.3.2 and getting
this error -
Status: 500 Internal Server Error
ActionController::Session::CookieStore::CookieOverflow
/usr/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
session/cookie_store.rb:102:in `call''
/usr/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
reloader.rb:9:in
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 :*
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 =
2010 Jul 19
16
Strange Error undefined method `show' for # see no way to debug, suggestions?
I changed fairly much in my app without constant testing ( my bad )
now i get an error which I cannot seem to debug point my finger on.
I have a home controller which just displays a welcome page this had a
index only action.
Whatever controller I try to open i always get above error message
ActionView::TemplateError (undefined method `show'' for