Displaying 20 results from an estimated 10000 matches similar to: "ActiveRecord::DangerousAttributeError ???"
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
2008 Jan 14
0
Controoler/View problem
Hi i''m new with ruby on rails. And i''m trying to build an application
with an authentication method, I''m using the Recipe from the book
"Rails Recipes". The thing is that i wrote the procedure inside the
Login controller class, but when i try to access it I got an exception
that say "couldn''t find Login With ID=signin" (signin is the method
2007 Dec 21
7
missing sourcefile (no such file to load)-- squlite3 error
hi all,
i got a problem of no such file to load -- sqlite3, after installing
new rails version yesterday...
the uninstallation gone through this way...
$ gem uninstall rails
successfully uninstalled rails-1.2.3
Remove executables and scrips for
''rails'' in addition to the gem ? [Y/n] - then i gave it ''Y''
*** as like it gone
2008 Jan 03
7
error message after upgrading ruby
hi
first off all a happy new year to you all.
I''m using netbeans 6 and ruby 2.02.
at this point I get my index page in my view in this format
index.html.erb and not like before index.rhtml
when I enter localhost:3000/lijsten/index I get the following error
message
Errno::EBADF in LijstenController#index
Bad file descriptor - connect(2)
RAILS_ROOT:
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
2008 Jan 06
8
ActionController::InvalidAuthenticityToken
Ruby noob here.
Just installed Rails 2.0, and am having trouble with updating DB
tables, using the ApplicationController.
My ApplicationController file looks like:
class StoryController < ApplicationController
protect_from_forgery :only =>
[:create, :update, :destroy]
scaffold :story
#def index
#@current_time = Time.now
#@story =
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:
2006 Jan 24
1
Newbie: Cookbook Application problem with MYSQL
Hi everybody,
I''ve been reading lot of material about Ruby on Rails, and it looks like
really rocks.
I''ve downloaded the one-click version for Windows and started to build
the example cookbook app, found in:
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=1
Everything looks good, but when I''m trying to create a new Recipe
2006 Jun 23
0
Date class giving errors
Any time I try to use any methods of the Date class, I get errors of
''invalid date''. For example, I have this happening:
With the code Date.today, I get this error from Rails:
- - - - - - - - - -
ArgumentError in Student#show
Showing app/views/student/show.rhtml where line #10 raised:
invalid date
Extracted source (around line #10):
7: <p> <%=
2006 Jul 12
0
Strange error
Has anyone ever experience this error? I''m not sure where to trace it
back to.
Showing
usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/templates/rescues/_request_and_response.rhtml
where line #40 raised:
wrong number of arguments (1 for 0)
Extracted source (around line #40):
37: <p><b>Parameters</b>: <%=h request_dump ==
2007 Aug 17
1
Scaffold (Agile Web Development With Rails)
What am I doing wrong here?
[app/controllers/admin_controller.rb]
class AdminController < ApplicationController
before_filter :authorize
def index
list
render :action => ''list''
end
# GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
verify :method => :post, :only => [ :destroy, :create, :update ],
2006 Jan 21
2
flickr demo
hi --
i''m a beginner to rails, so thanks for your patience.
i was following the flickr video demo step-by-step
(http://media.rubyonrails.org/video/flickr-rails-ajax.mov).
i''m using ruby 1.8.2 on mac OS X.
i keep getting this error message after typing in a tag and submitting the
form:
ArgumentError in Flickr#search
wrong number of arguments (1 for 0)
RAILS_ROOT:
2006 Apr 10
0
TaskThis undefined method `remembrall_expires'' for #<User:0x
This happens before each login attempt.
Please note that if I click on the refresh button of my browser I then
login succesfully.
Any hint?
--
fabio vitale
NoMethodError in AccountController#login
undefined method `remembrall_expires'' for #<User:0x351f238>
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
2005 Dec 18
0
Couldn''t find Login with ID
Hi,
I am a lerarner and i Am getting this problem when I try to delete.
I am not able to understand what is this ID and why its like this.
Any one explain me what does it mean and how to solve this . This is as also
with show/edit.
Thanks in advance
Couldn''t find Login with ID=30640940
RAILS_ROOT: ./script/../config/..
2006 Sep 12
1
Ferret on Windows?
I am trying to use SVN HEAD of Acts_as_ferret, and I have ferret
0.10.4installed from the windows Gem.
Unfortuanantly, whenever I i let act_as_ferrets init.rb file require ferret,
my app blows up, with weird "Invalid char" errors. I have pasted the page
below. If I comment out the require ferret, the page loads. Of course,
act_as_ferret does blow up.
My unit tests do work fine
2006 Apr 26
0
Re: gSOAP and ActionWebService interop problems
I am experiencing a similar problem, not with gSOAP, but with
Apache''s SOAP library. Just like Guido, XML-RPC works perfectly, but
the SOAP request processing fails during protocol discovery. Rail''s
SOAP client also works perfectly, so I''m fairly certain the error is
not in my code.
I am new to both ActionWebService and the Ruby XMLRPC module, so I''m
2006 Jan 15
0
OS X Rails - Nuby
OK, I''m diving into new things - a .net programmer and windows user
trying to develop in Rails on my Mac. Initial setup was easy, and I had
things working and was thrilled with myself. Then I shut down. Next
time I booted up, mysql was acting all kinds of funny. I finally got
that working again (I *think* it mostly had to do with me not having the
right path, I unfortunately
2009 Sep 28
2
Error with flash and form_authenticity_token in new rails application with scaffolding
Hi All,
I get this strange problem with newly scaffolded apps - I''d really
appreciate any help in this regard.
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/
active_support/message_verifier.rb:46:in `block in secure_compare''
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/
active_support/message_verifier.rb:45:in `each''
2006 May 30
0
Problems when applying search to filter rows.
Hello,
I am trying to create in the main Layout of the application fields of
selection of fields of the model, and other to insert its value. Next I put
a search button, with the idea to leak by the search in the view of the
model where it executes this button. I have generated the views with
ajaxscaffold.
I do not know if what I try to do it does of this form or another one.
My code is the
2007 Mar 24
0
overloading to_json with JSON gem installed causing error
I installed the JSON gem because I wanted the JSON parser.
Before installing the JSON gem, overloading worked fine. Before I
remove it, I''d like to see if anyone has an idea of what is going on.
It''s the only JSON parser I''m aware of, so it would be a bummer if it
didn''t work.
After installing, if I overload the to_json method in the class, it
gives me the