Displaying 20 results from an estimated 3000 matches similar to: "Salted Login Hash Woes"
2006 Jun 08
2
LoginEngine: undefined method `generate_security_token''
Hi there,
I''m trying to set up LoginEngine with Rails 1.1.2 on Ruby 1.8.4 on a
Windows XP box and the log is reporting:
undefined method `generate_security_token'' for #<User:0x39436a0>
Rendering user/signup
Rendered user/_edit (0.01600)
Rendered user/_password (0.01600)
Rails appears to be failing on key = @user.generate_security_token in
user_controller.rb in the
2005 May 11
7
1.0.8 Salted hash login generator available
All,
Version 1.0.8 of the salted hash login generator is available.
This contains a few minor bug fixes with the generator plus some
README clarifications. If you are successfully running with the code
already, you probably do not need this.
Joe
2006 Apr 18
7
Connecting to multiple databases
Hi Everyone,
I am trying to connect to multiple databases and followed along the
Recipe in Chad Fowlers ''Rails Recipes'' book (which basically is about
establishing the connection in a subclass of ActiveRecord::Base, and
inheriting all classes in need of this connection from this class)
Chad Fowler says:
"You won''t be able to instantiate an External, of course,
2005 May 18
10
Salted Login Generator issues
Hello all,
I''ve just installed and begun to integrate the salted login generator.
So far I''m very impressed, though I''ve hit a few snags along the way.
Unfortunately, I''ve met the first one that I haven''t been able to
resolve on my own.
When I hit the login action, I get errors in my log files. The specific
error with trace is included below.
2006 Jan 10
5
Oracle 10g Express - generate scaffold gives error
Hello,
I have Oracle XE installed.
I have a table USERS.
When I try to generate a scaffold it gives me this error.
I tried also with Mysql and it worked.
E:\radrails\projects\MPS>ruby script\generate scaffold user
exists app/controllers/
exists app/helpers/
create app/views/user
exists test/functional/
dependency model
exists app/models/
exists
2006 Jan 28
3
App running fine on Webrick, ActiveRecord::ConnectionNotEstablished in lighttpd
My app runs fine on webrick, but I get a
ActiveRecord::ConnectionNotEstablished when I try to run it on
lighttpd. Here''s the app''s lighttpd config:
$HTTP["host"] =~ "(www\.)?mysite\.com" {
server.document-root = "/home/pergesuteore/public/"
server.error-handler-404 = "/dispatch.fcgi"
fastcgi.server = ( ".fcgi" =>
(
2006 Mar 03
1
weird error with login engine
Any ideas what would cause the following exception (using the login engine):
--------------------------------------
Full executation backtrace:
--------------------------------------
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/base.rb:1697:in
`execute_callstack_for_multiparameter_attributes''
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/base.rb:1677:in
2006 Mar 16
1
login_engine error
Hey All,
I have been unsuccessful at getting the login_engine installed. I
have used it before but since the last time I''ve used it I can''t get
it to work correctly.
I was wondering if someone could help out with the following error:
undefined method `password_confirmation='' for #<User:0x2aaaad1421a0>
Any Help?
Thanks,
Adam
<<<<<<REST OF
2005 Oct 20
2
Salted Login Generator Installation
Hi,
I am trying to install the salted login generator from
rubygems. I have version 0.13.1 of rails installed.
When I try to install the salted login generator (gem
install salted_login_generator) it asks:
Install required dependency rails?
If I select yes it says:
RubyGem version error: rails(0.11.1 not >= 0.13.1)
and fails. It does the same thing when I try to
install the regular
2005 Oct 21
8
Wrong number of arguments (1 for 0) on routes.rb
Hi,
I''m baffled by this error. I need a simple controller to send e-mails,
so first I thought about just creating the controller manually (without
using script/generate), since that didn''t seem to work, I created a
dummy table in my DB and used the usual procedure to generate scaffold code.
Then I modified the controller to have only two methods, send and compose:
class
2005 Aug 09
3
Adding created_by and updated_by trouble
Hi everyone. This is a real noob question that I''m hoping someone out there
can help me with.
I have followed the tutorial How to Ad created_by and
updated_b<http://wiki.rubyonrails.com/rails/show/Howto%20Add%20created_by%20and%20updated_by>y
and it works ok for retrieving the data. I''m using the Login_Generator.
I cannot get it to work on create or update. I think
2006 May 06
7
New Ajax and Rails tutorial
Hi,
I just published the first version of a small tutorial I''ve written on
Ajax and Rails. It is called "How to paginate, sort and search a table
with Ajax and Rails" (sorry, I didn''t manage to find a longer title !)
and is available at :
http://dev.nozav.org/rails_ajax_table.html
There is nothing really new in it, it''s rather a compilation and
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,
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 =
2008 Mar 08
9
Validation error handling on related models
I have 2 models, entity and client. Entity has_one client and client
belongs_to entity.
Entity has attributes name and legal_name. Entity also has an unique
index on (lower(name)). The pKey for both is the conventional Rails id.
Client has a fKey constraint on entity_id and is indexed in entity_id.
In controllers/clients_controller.rb I have:
# GET /clients/new
# GET /clients/new.xml
2006 Jul 24
7
[PATCH] Support for DB Clusters/Replication in ActiveRecord (RFC)
Skipped content of type multipart/alternative-------------- next part --------------
Index: connection_adapters/abstract/connection_specification.rb
===================================================================
--- connection_adapters/abstract/connection_specification.rb (revision 4617)
+++ connection_adapters/abstract/connection_specification.rb (working copy)
@@ -1,10 +1,21 @@
require
2005 Dec 21
10
can an active records maps to N tables?
Hi,
Is it possbile that one active record maps to N
tables, actually the relation is 1 to 1, I wonder it
is possible.
also can a ruby object map to N tables, instead of an
active records?
Thanks you very much:)
Saiho
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
2006 Apr 04
2
HABTM
Hi.
Im new to Ruby and new to Ruby on Rails and have problems realizing a =20=
simple many_to_many relationship:
My tables:
items <-> items_users <-> users
------------------------------------------------------------------------=20=
--------------------------------------
id user_id =
id
name item_id name
... =
password
=
......
My Code:
class
2006 Jan 27
5
Newbie:Adding a new Table-Strange Error
Hi Everybody,
I am a newbie in this list so please forgive me if this is a lengthy
message.
Currently I am working on a project at my work place that includes
viewing some oracle tables(I do not have control over to rewrite the
tables) and searching the tables based on a given criteria with Rails.
Up untill now everything was working great. The database consists of a
lot of tables but I was
2006 May 21
8
Rails and Postgres
Hi, I''m new to Ruby on Rails and am having a little difficulty working
through the ''Rolling with Ruby on Rails'' tutorial. Can anyone help?
I''m trying to get the cookbook application to work via a Postgresql db.
But get the following error when trying to access
http://127.0.0.1:3000/recipe/new
Errno::EINVAL in RecipeController#new
Invalid argument