Displaying 20 results from an estimated 10000 matches similar to: "undefined method `valid_password?'"
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
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 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
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''
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
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
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 --
2009 Aug 28
0
get this error: "A copy of * has been removed from the module tree but is still active!"
Hi,
In one of my javascript functions I do two consecutive GET (ajax)
requests in quick succession. I get the following error in Rails
version 2.3.3 but not in 2.3.2. If I give a time lag (even 500ms)
between to two requests the problem vanishes!!:
----
ArgumentError
in StudentsController#index
<pre>A copy of StudentsController has been removed from the module
tree but is still
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
2011 Jun 01
7
desperate, errors with file upload
hello,
i implementing a file upload using paperclip plugin. i getting the
following error [1] when uploading a file. I''m using the gems rails
v2.3.8 and paperclip v2.1.6. the parameter hash looks like [2], the
model like [3].
Interesting is that i get two different errors, on the localhost with
webrick it says:
Status: 500 Internal Server Error
no marshal_dump is defined for class
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 /!\
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 =