Displaying 1 result from an estimated 1 matches for "roleid".
Did you mean:
role_id
2009 Jan 27
2
Login form_tag with select_tag option
Hi all,
In the application i develop, a sophisticated login system is required.
Being a newbie in Ruby, i''m not comfortable with the select tag in the
form tag.
My requirement:
2 tables - User(LoginName, Password, RoleId...) and Role(RoleId,
RoleName...)
View - RoleNames to be loaded in the drop down box and On submit, RoleId
to be passed to controller for authentication.
My Code Snippet:
#Controller
if request.post? and params[:login]
@user = User.new(params[:login])
validUser = User.find(:first,:...