Displaying 2 results from an estimated 2 matches for "user_model".
Did you mean:
user_mode
2005 Mar 09
10
Confused about extending the login generator ''user''
...equire classes for
all objects kept in the session. The session has been deleted.>
1) My application.rb is straight from the README, ie:
Require_dependency "login_system"
class ApplicationController < ActionController::Base
include LoginSystem
model :user
end
2) My user_model.rb is a little different because I have defined the
relationship to the type table, ie
class MybmsUser < ActiveRecord::Base
belongs_to: user_type
3) I''ve added the ''user_type_id'' to my ''users'' table and created the
''user_types'...
2008 Jun 16
2
simple rails login system
...end
end
def register
@title = "Register"
if request.post?
@user = User.new(params[:user])
if @user.save
render :text => "Account Created."
end
end
end
end
user_model.rb
--------------
class User < ActiveRecord::Base
end
---------------------------
Basically the problem occurs in ''index'', @user keeps returning nil only
in index (works fine in register) when pushed through the sql query it
returns nil. Is there a proper method to extracti...