search for: add_user

Displaying 20 results from an estimated 65 matches for "add_user".

Did you mean: add_used
2006 Jul 08
2
Creating/Saving dependent objects
...page. I have a User and Address models defined as below (partial/relevant code included below). User has_one address and Address belongs_to user. I have a foreign key defined in address table that refers to user(id) In a form I take in username, password, password_confirmation and address fields (add_user.rhtml below). I then try to populate the data through an add_user action in the user_controller - code included below. For some reason I am getting a foreign key violation error as below. *class User < ActiveRecord::Base has_one :address # validation stuff here def create_addr(params) address...
2006 Mar 29
6
Simply Getting Post Params
...able users with the following fields: username, email_address, password and join_dt. Following pretty closely to the login section in the Agile Web Development with Rails book, the model takes the username, email_address and password (which is hashed before_create()) from the form found in the add_user view. It also makes join_dt = Time.now() in the model. There is an associated add_user action in the login_controller that passes the params to User.new() when a new user is created. My question is that I want the password to be verified and entered twice to ensure the user types the correct pa...
2005 Dec 17
1
lost in an ActiveRecord::StatementInvalid
I have an error I don''t know how to debug. I am adding the login suport in Depot (the example in the RoR book) and LoginController#add_user throws ActiveRecord::StatementInvalid in an innocent /login/add_user GET request. The trace goes down to a call to SQLiteAdapter#table_structure, and the source code suggests what''s happening is that "PRAGMA table_structure(#{table_name})" is returning empty metadata for s...
2006 Apr 25
2
agile depot app login failure :(
Hi *, In an attempt to go back to the drawing board and learn RoR some more - I have built the depot application from the agile book. After finishing I tried to create a user for the admin section, however when ever I go to: http://localhost:3000/login/add_user It redirects to the login action, I don''t see the [add user] submit button?? I am sure this is connected to the application.rb def authorize unless session[:user_id] flash[:notice] = "Please log in" redirect_to(:controller => &q...
1999 Apr 25
0
swat: bug located
...er exists; but only if trust_account is true. I guess this is fine; I don't know enough about the protocols to know exactly what needs to be done where and why; but I do know that on line 111 you enter a conditional that checks "did we find an smb_pwent? no, okay, are we being called with add_user? yes, okay, let's call add_new_user passing user_name and then the big clincher (on line 121) pwd->pw_uid.... Remember that the user did not exist in the /etc/passwd file; thus pwd = null pointer. :) I'd supply a patch to fix this; but there are various ways to 'fix' this and n...
2005 May 17
2
Noob - ActionView::Helpers::FormOptionsHelper::select
Hi, I''m just starting with Rails and i''m trying to do something like this: <%= start_form_tag :action => ''add_user'', :id => @social_event_group %> <%= select ''user'', ''id'' , User.find_all.collect {|u| [ u.login, u.id ] }%></p> <%= submit_tag "Add User" %> <%= end_form_tag %> and i''m doing this in the "add_user&...
1999 Apr 25
0
swat core dump and debug information
...er exists; but only if trust_account is true. I guess this is fine; I don't know enough about the protocols to know exactly what needs to be done where and why; but I do know that on line 111 you enter a conditional that checks "did we find an smb_pwent? no, okay, are we being called with add_user? yes, okay, let's call add_new_user passing user_name and then the big clincher (on line 121) pwd->pw_uid.... Remember that the user did not exist in the /etc/passwd file; thus pwd = null pointer. :) I'd supply a patch to fix this; but there are various ways to 'fix' this and n...
2006 May 09
2
User.new doesn´t capture all of the parameters
Hi, I have a page where I can add new users to the database, but it only sees whats in the name and passord field. add_user.rhtml: <%= form_tag %> <%= form_tag :action => ''add_user'' %> <td>User name:</td> <td><%= text_field("user", "name") %></td> </tr> <tr> <td>Password:</td> <td><%= password_f...
2017 May 27
3
idmap woes after upgrade
....uk> wrote: > The other lines never did anything on a DC. Thank you, I've removed them now.. > Unless you manually add uidNumber attributes to users and gidNumber > attributes to groups, id mapping on a DC is done in idmap.ldb and > results in ID numbers in the 3000000 range. My add_user script keeps track of uidNumber's and makes sure they're unique. > If you rely on idmap.ldb for your ID mappings, you will need to keep > idmap.ldb in sync on both DCs, otherwise you are very likely to get > different user & group IDs on each DC. This is only a concern if you...
2006 Feb 17
4
Best practice for showing errors AND updating list
Morning/Afternoon/Evening All, This is my first post to the ruby message board so if my request is better suited to another location just let me know, The problem I keep coming up against is with a listing of objects and updating that list via AJAX (for arguments we are talking about a list of users). As it stands I can currently submit a form, and update the list (using :update
2008 Dec 31
7
Understand submit_tag
...studies, I decided to try to create my own application based on what I''ve learned... Now I''m in trouble in a simple form. I tried to create a form to register new users. I''m sending attached the files that I created for this. but my view don''t call the action add_user when the user click on submit <%= submit_tag "Novo Usu&aacute;rio", :class => "submit" %> Translation from portuguese: "Novo Usu&aacute;rio" = "New User" I searched a lot in foruns and google and didn''t solve my problem. I believe...
2006 Jun 08
8
Routing help.... it is so difficult!
hi guys, sorry to trouble you all but i really dont understand how this routing thing work... it seems easy but it just dont work for me! here''s the situation : my url b4 : http://127.0.0.1:3001/admin/login my url after: http://127.0.0.1:3001/burninglegion/admin/login i wanna do something like this so i went to the routes.rb and type this: ActionController::Routing::Routes.draw do
2004 Mar 01
0
RE: win32etc test failure
...--- From: Date, Shashank [Non-Employee] [mailto:Shashank.Date@mail.sprint.com] Sent: Monday, March 01, 2004 10:02 AM To: Berger, Daniel Subject: RE: win32etc test failure I like your approach better: allow me to be lazy (so I am not _forced_ to give it) but forgive me if I do ;-) It worked for add_user both with AND without \\ -- Shashank -----Original Message----- From: Berger, Daniel [mailto:djberge@qwest.com] Sent: Monday, March 01, 2004 10:53 AM To: Date, Shashank [Non-Employee] Cc: win32utils-devel@rubyforge.org Subject: RE: win32etc test failure Yep, I agree. Well, what would you pre...
2004 Mar 01
0
RE: win32etc test failure
...--- From: Date, Shashank [Non-Employee] [mailto:Shashank.Date@mail.sprint.com] Sent: Monday, March 01, 2004 10:02 AM To: Berger, Daniel Subject: RE: win32etc test failure I like your approach better: allow me to be lazy (so I am not _forced_ to give it) but forgive me if I do ;-) It worked for add_user both with AND without \\ -- Shashank -----Original Message----- From: Berger, Daniel [mailto:djberge@qwest.com] Sent: Monday, March 01, 2004 10:53 AM To: Date, Shashank [Non-Employee] Cc: win32utils-devel@rubyforge.org Subject: RE: win32etc test failure Yep, I agree. Well, what would you pre...
2008 Jul 12
6
Create db row in my partial template
Hi, When I use script/generate scaffold for my db it automatically creates that page where I can select to add a new item to the database. In the controller, the create method looks like this: def create @user = User.new(params[:user]) respond_to do |format| if @user.save flash[:notice] = ''User was successfully created.'' format.html {
2004 Mar 01
0
RE: win32etc test failure
...--- From: Date, Shashank [Non-Employee] [mailto:Shashank.Date@mail.sprint.com] Sent: Monday, March 01, 2004 10:02 AM To: Berger, Daniel Subject: RE: win32etc test failure I like your approach better: allow me to be lazy (so I am not _forced_ to give it) but forgive me if I do ;-) It worked for add_user both with AND without \\ -- Shashank -----Original Message----- From: Berger, Daniel [mailto:djberge@qwest.com] Sent: Monday, March 01, 2004 10:53 AM To: Date, Shashank [Non-Employee] Cc: win32utils-devel@rubyforge.org Subject: RE: win32etc test failure Yep, I agree. Well, what would you pre...
2006 Jul 10
7
How to obscure/encrypt password parameter?
Hi all- I am building an application that includes a login screen. During development I found that user passwords are logged by Rails in plain text -- this will not be acceptable to my users. Is there a way to obscure/encrypt incoming password parameters or not write them to the log files at all? One thought was to use Javascript, but I was not sure how secure that would be. Thanks, Josh
2010 Apr 26
2
woriking under webrick but not under passenger
...https://******/login/login_page Filter chain halted as [:authorize] rendered_or_redirected. Completed in 31ms (DB: 3) | 302 Found [https://******/] Does anybody has any suggestion what I could do? -------------------------------------------- class LoginController < ApplicationController def add_user @user = User.new(params[:user]) if request.post? and @user.save flash.now[:notice] = "User #{@user.name} created" @user = User.new end end def login_page session[:user_id] = nil if request.post? user = User.authenticate(params[:name], params[:pas...
2004 Mar 01
0
RE: win32etc test failure
...elf? I''m tempted to go with the former because, well, it''s been there for a while now. I can even use strtok to detect if ''\\\\'' is at the beginning of the string and add them only if not found. I''ll have to take a look at delete user - it worked for add_user, right? Hmm... Dan -----Original Message----- From: Date, Shashank [Non-Employee] [mailto:Shashank.Date@mail.sprint.com] Sent: Monday, March 01, 2004 9:49 AM To: Berger, Daniel Subject: RE: win32etc test failure My preference: POLS ! Either do it for _all_ the situations, no exceptions OR do...
2007 Mar 12
0
Undefined method: hashed_password ?
I bought the Agile book to learn Rails, and everything was going smooth until Iteration F1: Adding Users. I''ve double checked my code, used the code provided by the book, and still it returns this same error message: **** NoMethodError in LoginController#add_user undefined method `hashed_password='' for #<User:0x473f0d8> RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace C:/InstantRails-1.6-win/InstantRails/ruby/lib/ruby/gems/1.8/gems/ activerecord-1.15.2/lib/active_record/base.rb:1858:in `method_missing'&...