search for: register_us

Displaying 5 results from an estimated 5 matches for "register_us".

Did you mean: register_uk
2006 Jul 24
6
error_messages_for not working
...uot;0" cellspacing="0"> <tr><td class="panelheader">Quick Register!</td></tr> <tr valign="top" align="left"> <td class="loginbg"> <%= form_tag(:controller => "login", :action => "register_user") %> <%= error_messages_for(:user) %> ... Controller: community_controller.rb def register_user # begin @user = User.new(params["user"]) @user.passwd = User.hash_password(params["user"]["passwd"]) if @user.save! redirect_to(:controller => "pro...
2006 Jul 06
1
Form not inserting data into database
...(255) not null, state varchar(255) not null, country varchar(255) not null, phone varchar(255) not null, website varchar(255) not null, created_at datetime null, primary key (id) ); users_controller: # Add a new user to the database. def register_user if request.get? @user = User.new else @user = User.new(params[:user]) if @user.save flash[:notice] = "User #{@user.login} created" #redirect_to :action => ''//login/login'' redirect_to :controller=>''adverts...
2006 Jan 16
4
Creating two records at once
...oller I have a method that creates the user. I also want the profile model to be filled in with the appropriate user_id foreign key (I don''t care about the other columns being filled in at that time). Here''s what I have: (it obviously doesn''t work... but am I close?) def register_user if request.get? @user = User.new @profile = Profile.new else # Get the parameters from the form and put them in the user object @user = User.new(params[:user]) @profile = Profile.new(params[:profile]) # Storing the users IP @user.registered_from_i...
2008 Mar 11
1
Worker logging in test output.
...I''m trying to silence the information that backgroundrb is putting in to my test runs. I''m seeing several hundred lines of this during the test runs (both unit and functional): {:type=>:all_worker_info} {:type=>:do_work, :worker=>:xmlrpc_xmpp_worker, :worker_method=>:register_user, :data=>{:xmpp_password=>"04ced0eda236a8690ec8ed30af63b3f2d886109c", :userid=>1151}} but can''t find where it seems to be coming from. How do I shut it off? I''m using 1.0.3 on 2.0.2 with the standard testing setup (i.e. no rspec). Cheers, Todd -------------...
2006 May 17
4
NOOB: Representing linked objects in one form
Given two models: User :name :email :address_id # foreign key Address :line_1 :line_2 :city etc. I want to have a form allowing a user to register, in which she''d enter an address as well, but how do I go about combining both objects into the one form? I''m new to this and following along with the Agile Rails book from the Pragmatic Programmers, but it